AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateArchiveRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EventBridge {
15namespace Model {
16
20 public:
21 AWS_EVENTBRIDGE_API CreateArchiveRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateArchive"; }
28
29 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
30
31 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
38 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
39 template <typename ArchiveNameT = Aws::String>
40 void SetArchiveName(ArchiveNameT&& value) {
41 m_archiveNameHasBeenSet = true;
42 m_archiveName = std::forward<ArchiveNameT>(value);
43 }
44 template <typename ArchiveNameT = Aws::String>
45 CreateArchiveRequest& WithArchiveName(ArchiveNameT&& value) {
46 SetArchiveName(std::forward<ArchiveNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
56 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
57 template <typename EventSourceArnT = Aws::String>
58 void SetEventSourceArn(EventSourceArnT&& value) {
59 m_eventSourceArnHasBeenSet = true;
60 m_eventSourceArn = std::forward<EventSourceArnT>(value);
61 }
62 template <typename EventSourceArnT = Aws::String>
63 CreateArchiveRequest& WithEventSourceArn(EventSourceArnT&& value) {
64 SetEventSourceArn(std::forward<EventSourceArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 CreateArchiveRequest& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
92 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
93 template <typename EventPatternT = Aws::String>
94 void SetEventPattern(EventPatternT&& value) {
95 m_eventPatternHasBeenSet = true;
96 m_eventPattern = std::forward<EventPatternT>(value);
97 }
98 template <typename EventPatternT = Aws::String>
99 CreateArchiveRequest& WithEventPattern(EventPatternT&& value) {
100 SetEventPattern(std::forward<EventPatternT>(value));
101 return *this;
102 }
104
106
110 inline int GetRetentionDays() const { return m_retentionDays; }
111 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
112 inline void SetRetentionDays(int value) {
113 m_retentionDaysHasBeenSet = true;
114 m_retentionDays = value;
115 }
117 SetRetentionDays(value);
118 return *this;
119 }
121
123
139 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
140 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
141 template <typename KmsKeyIdentifierT = Aws::String>
142 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
143 m_kmsKeyIdentifierHasBeenSet = true;
144 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
145 }
146 template <typename KmsKeyIdentifierT = Aws::String>
147 CreateArchiveRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
148 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_archiveName;
154
155 Aws::String m_eventSourceArn;
156
157 Aws::String m_description;
158
159 Aws::String m_eventPattern;
160
161 int m_retentionDays{0};
162
163 Aws::String m_kmsKeyIdentifier;
164 bool m_archiveNameHasBeenSet = false;
165 bool m_eventSourceArnHasBeenSet = false;
166 bool m_descriptionHasBeenSet = false;
167 bool m_eventPatternHasBeenSet = false;
168 bool m_retentionDaysHasBeenSet = false;
169 bool m_kmsKeyIdentifierHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace EventBridge
174} // 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