AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateArchiveRequest.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EventBridge
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EVENTBRIDGE_API CreateArchiveRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateArchive"; }
31
32 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
33
34 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
42 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
43 template<typename ArchiveNameT = Aws::String>
44 void SetArchiveName(ArchiveNameT&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::forward<ArchiveNameT>(value); }
45 template<typename ArchiveNameT = Aws::String>
46 CreateArchiveRequest& WithArchiveName(ArchiveNameT&& value) { SetArchiveName(std::forward<ArchiveNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
54 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
55 template<typename EventSourceArnT = Aws::String>
56 void SetEventSourceArn(EventSourceArnT&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::forward<EventSourceArnT>(value); }
57 template<typename EventSourceArnT = Aws::String>
58 CreateArchiveRequest& WithEventSourceArn(EventSourceArnT&& value) { SetEventSourceArn(std::forward<EventSourceArnT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 CreateArchiveRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
78 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
79 template<typename EventPatternT = Aws::String>
80 void SetEventPattern(EventPatternT&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::forward<EventPatternT>(value); }
81 template<typename EventPatternT = Aws::String>
82 CreateArchiveRequest& WithEventPattern(EventPatternT&& value) { SetEventPattern(std::forward<EventPatternT>(value)); return *this;}
84
86
90 inline int GetRetentionDays() const { return m_retentionDays; }
91 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
92 inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; }
93 inline CreateArchiveRequest& WithRetentionDays(int value) { SetRetentionDays(value); return *this;}
95
97
113 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
114 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
115 template<typename KmsKeyIdentifierT = Aws::String>
116 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value); }
117 template<typename KmsKeyIdentifierT = Aws::String>
118 CreateArchiveRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) { SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value)); return *this;}
120 private:
121
122 Aws::String m_archiveName;
123 bool m_archiveNameHasBeenSet = false;
124
125 Aws::String m_eventSourceArn;
126 bool m_eventSourceArnHasBeenSet = false;
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
131 Aws::String m_eventPattern;
132 bool m_eventPatternHasBeenSet = false;
133
134 int m_retentionDays{0};
135 bool m_retentionDaysHasBeenSet = false;
136
137 Aws::String m_kmsKeyIdentifier;
138 bool m_kmsKeyIdentifierHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace EventBridge
143} // namespace Aws
CreateArchiveRequest & WithEventPattern(EventPatternT &&value)
CreateArchiveRequest & WithArchiveName(ArchiveNameT &&value)
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreateArchiveRequest & WithRetentionDays(int value)
CreateArchiveRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreateArchiveRequest & WithEventSourceArn(EventSourceArnT &&value)
AWS_EVENTBRIDGE_API CreateArchiveRequest()=default
CreateArchiveRequest & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String