AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateArchiveRequest.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 UpdateArchiveRequest() = 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 "UpdateArchive"; }
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 UpdateArchiveRequest& WithArchiveName(ArchiveNameT&& value) {
46 SetArchiveName(std::forward<ArchiveNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 UpdateArchiveRequest& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetEventPattern() const { return m_eventPattern; }
74 inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
75 template <typename EventPatternT = Aws::String>
76 void SetEventPattern(EventPatternT&& value) {
77 m_eventPatternHasBeenSet = true;
78 m_eventPattern = std::forward<EventPatternT>(value);
79 }
80 template <typename EventPatternT = Aws::String>
81 UpdateArchiveRequest& WithEventPattern(EventPatternT&& value) {
82 SetEventPattern(std::forward<EventPatternT>(value));
83 return *this;
84 }
86
88
91 inline int GetRetentionDays() const { return m_retentionDays; }
92 inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; }
93 inline void SetRetentionDays(int value) {
94 m_retentionDaysHasBeenSet = true;
95 m_retentionDays = value;
96 }
98 SetRetentionDays(value);
99 return *this;
100 }
102
104
120 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
121 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
122 template <typename KmsKeyIdentifierT = Aws::String>
123 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
124 m_kmsKeyIdentifierHasBeenSet = true;
125 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
126 }
127 template <typename KmsKeyIdentifierT = Aws::String>
128 UpdateArchiveRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
129 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_archiveName;
135
136 Aws::String m_description;
137
138 Aws::String m_eventPattern;
139
140 int m_retentionDays{0};
141
142 Aws::String m_kmsKeyIdentifier;
143 bool m_archiveNameHasBeenSet = false;
144 bool m_descriptionHasBeenSet = false;
145 bool m_eventPatternHasBeenSet = false;
146 bool m_retentionDaysHasBeenSet = false;
147 bool m_kmsKeyIdentifierHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace EventBridge
152} // namespace Aws
AWS_EVENTBRIDGE_API UpdateArchiveRequest()=default
UpdateArchiveRequest & WithArchiveName(ArchiveNameT &&value)
UpdateArchiveRequest & WithDescription(DescriptionT &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateArchiveRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
UpdateArchiveRequest & WithEventPattern(EventPatternT &&value)
UpdateArchiveRequest & WithRetentionDays(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String