AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CurationPolicySummary.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/CurationPolicyStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Context {
22namespace Model {
23
32 public:
33 AWS_CONTEXT_API CurationPolicySummary() = default;
34 AWS_CONTEXT_API CurationPolicySummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API CurationPolicySummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetLastPublishedVersion() const { return m_lastPublishedVersion; }
99 inline bool LastPublishedVersionHasBeenSet() const { return m_lastPublishedVersionHasBeenSet; }
100 template <typename LastPublishedVersionT = Aws::String>
101 void SetLastPublishedVersion(LastPublishedVersionT&& value) {
102 m_lastPublishedVersionHasBeenSet = true;
103 m_lastPublishedVersion = std::forward<LastPublishedVersionT>(value);
104 }
105 template <typename LastPublishedVersionT = Aws::String>
106 CurationPolicySummary& WithLastPublishedVersion(LastPublishedVersionT&& value) {
107 SetLastPublishedVersion(std::forward<LastPublishedVersionT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
119 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
120 template <typename RevisionIdT = Aws::String>
121 void SetRevisionId(RevisionIdT&& value) {
122 m_revisionIdHasBeenSet = true;
123 m_revisionId = std::forward<RevisionIdT>(value);
124 }
125 template <typename RevisionIdT = Aws::String>
126 CurationPolicySummary& WithRevisionId(RevisionIdT&& value) {
127 SetRevisionId(std::forward<RevisionIdT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
137 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
138 template <typename CreatedAtT = Aws::Utils::DateTime>
139 void SetCreatedAt(CreatedAtT&& value) {
140 m_createdAtHasBeenSet = true;
141 m_createdAt = std::forward<CreatedAtT>(value);
142 }
143 template <typename CreatedAtT = Aws::Utils::DateTime>
145 SetCreatedAt(std::forward<CreatedAtT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
156 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
157 template <typename UpdatedAtT = Aws::Utils::DateTime>
158 void SetUpdatedAt(UpdatedAtT&& value) {
159 m_updatedAtHasBeenSet = true;
160 m_updatedAt = std::forward<UpdatedAtT>(value);
161 }
162 template <typename UpdatedAtT = Aws::Utils::DateTime>
164 SetUpdatedAt(std::forward<UpdatedAtT>(value));
165 return *this;
166 }
168
170
177 inline long long GetAutoRejectAfterSeconds() const { return m_autoRejectAfterSeconds; }
178 inline bool AutoRejectAfterSecondsHasBeenSet() const { return m_autoRejectAfterSecondsHasBeenSet; }
179 inline void SetAutoRejectAfterSeconds(long long value) {
180 m_autoRejectAfterSecondsHasBeenSet = true;
181 m_autoRejectAfterSeconds = value;
182 }
185 return *this;
186 }
188
190
198 inline CurationPolicyStatus GetStatus() const { return m_status; }
199 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
200 inline void SetStatus(CurationPolicyStatus value) {
201 m_statusHasBeenSet = true;
202 m_status = value;
203 }
205 SetStatus(value);
206 return *this;
207 }
209 private:
210 Aws::String m_id;
211
212 Aws::String m_arn;
213
214 Aws::String m_name;
215
216 Aws::String m_lastPublishedVersion;
217
218 Aws::String m_revisionId;
219
220 Aws::Utils::DateTime m_createdAt{};
221
222 Aws::Utils::DateTime m_updatedAt{};
223
224 long long m_autoRejectAfterSeconds{0};
225
227 bool m_idHasBeenSet = false;
228 bool m_arnHasBeenSet = false;
229 bool m_nameHasBeenSet = false;
230 bool m_lastPublishedVersionHasBeenSet = false;
231 bool m_revisionIdHasBeenSet = false;
232 bool m_createdAtHasBeenSet = false;
233 bool m_updatedAtHasBeenSet = false;
234 bool m_autoRejectAfterSecondsHasBeenSet = false;
235 bool m_statusHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace Context
240} // namespace Aws
CurationPolicySummary & WithAutoRejectAfterSeconds(long long value)
AWS_CONTEXT_API CurationPolicySummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
CurationPolicySummary & WithArn(ArnT &&value)
CurationPolicySummary & WithUpdatedAt(UpdatedAtT &&value)
CurationPolicySummary & WithCreatedAt(CreatedAtT &&value)
CurationPolicySummary & WithLastPublishedVersion(LastPublishedVersionT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetLastPublishedVersion(LastPublishedVersionT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
CurationPolicySummary & WithId(IdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
CurationPolicySummary & WithStatus(CurationPolicyStatus value)
AWS_CONTEXT_API CurationPolicySummary()=default
CurationPolicySummary & WithRevisionId(RevisionIdT &&value)
const Aws::String & GetLastPublishedVersion() const
CurationPolicySummary & WithName(NameT &&value)
AWS_CONTEXT_API CurationPolicySummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String