AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DocumentVersionInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/DocumentFormat.h>
11#include <aws/ssm/model/DocumentStatus.h>
12#include <aws/ssm/model/ReviewStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM {
24namespace Model {
25
32 public:
33 AWS_SSM_API DocumentVersionInfo() = default;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 DocumentVersionInfo& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetDisplayName() const { return m_displayName; }
63 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
64 template <typename DisplayNameT = Aws::String>
65 void SetDisplayName(DisplayNameT&& value) {
66 m_displayNameHasBeenSet = true;
67 m_displayName = std::forward<DisplayNameT>(value);
68 }
69 template <typename DisplayNameT = Aws::String>
70 DocumentVersionInfo& WithDisplayName(DisplayNameT&& value) {
71 SetDisplayName(std::forward<DisplayNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
81 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
82 template <typename DocumentVersionT = Aws::String>
83 void SetDocumentVersion(DocumentVersionT&& value) {
84 m_documentVersionHasBeenSet = true;
85 m_documentVersion = std::forward<DocumentVersionT>(value);
86 }
87 template <typename DocumentVersionT = Aws::String>
88 DocumentVersionInfo& WithDocumentVersion(DocumentVersionT&& value) {
89 SetDocumentVersion(std::forward<DocumentVersionT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetVersionName() const { return m_versionName; }
101 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
102 template <typename VersionNameT = Aws::String>
103 void SetVersionName(VersionNameT&& value) {
104 m_versionNameHasBeenSet = true;
105 m_versionName = std::forward<VersionNameT>(value);
106 }
107 template <typename VersionNameT = Aws::String>
108 DocumentVersionInfo& WithVersionName(VersionNameT&& value) {
109 SetVersionName(std::forward<VersionNameT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
119 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
120 template <typename CreatedDateT = Aws::Utils::DateTime>
121 void SetCreatedDate(CreatedDateT&& value) {
122 m_createdDateHasBeenSet = true;
123 m_createdDate = std::forward<CreatedDateT>(value);
124 }
125 template <typename CreatedDateT = Aws::Utils::DateTime>
126 DocumentVersionInfo& WithCreatedDate(CreatedDateT&& value) {
127 SetCreatedDate(std::forward<CreatedDateT>(value));
128 return *this;
129 }
131
133
136 inline bool GetIsDefaultVersion() const { return m_isDefaultVersion; }
137 inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; }
138 inline void SetIsDefaultVersion(bool value) {
139 m_isDefaultVersionHasBeenSet = true;
140 m_isDefaultVersion = value;
141 }
143 SetIsDefaultVersion(value);
144 return *this;
145 }
147
149
152 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
153 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
155 m_documentFormatHasBeenSet = true;
156 m_documentFormat = value;
157 }
159 SetDocumentFormat(value);
160 return *this;
161 }
163
165
169 inline DocumentStatus GetStatus() const { return m_status; }
170 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
171 inline void SetStatus(DocumentStatus value) {
172 m_statusHasBeenSet = true;
173 m_status = value;
174 }
176 SetStatus(value);
177 return *this;
178 }
180
182
188 inline const Aws::String& GetStatusInformation() const { return m_statusInformation; }
189 inline bool StatusInformationHasBeenSet() const { return m_statusInformationHasBeenSet; }
190 template <typename StatusInformationT = Aws::String>
191 void SetStatusInformation(StatusInformationT&& value) {
192 m_statusInformationHasBeenSet = true;
193 m_statusInformation = std::forward<StatusInformationT>(value);
194 }
195 template <typename StatusInformationT = Aws::String>
196 DocumentVersionInfo& WithStatusInformation(StatusInformationT&& value) {
197 SetStatusInformation(std::forward<StatusInformationT>(value));
198 return *this;
199 }
201
203
207 inline ReviewStatus GetReviewStatus() const { return m_reviewStatus; }
208 inline bool ReviewStatusHasBeenSet() const { return m_reviewStatusHasBeenSet; }
209 inline void SetReviewStatus(ReviewStatus value) {
210 m_reviewStatusHasBeenSet = true;
211 m_reviewStatus = value;
212 }
214 SetReviewStatus(value);
215 return *this;
216 }
218 private:
219 Aws::String m_name;
220
221 Aws::String m_displayName;
222
223 Aws::String m_documentVersion;
224
225 Aws::String m_versionName;
226
227 Aws::Utils::DateTime m_createdDate{};
228
229 bool m_isDefaultVersion{false};
230
231 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
232
234
235 Aws::String m_statusInformation;
236
237 ReviewStatus m_reviewStatus{ReviewStatus::NOT_SET};
238 bool m_nameHasBeenSet = false;
239 bool m_displayNameHasBeenSet = false;
240 bool m_documentVersionHasBeenSet = false;
241 bool m_versionNameHasBeenSet = false;
242 bool m_createdDateHasBeenSet = false;
243 bool m_isDefaultVersionHasBeenSet = false;
244 bool m_documentFormatHasBeenSet = false;
245 bool m_statusHasBeenSet = false;
246 bool m_statusInformationHasBeenSet = false;
247 bool m_reviewStatusHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace SSM
252} // namespace Aws
void SetDocumentFormat(DocumentFormat value)
const Aws::String & GetVersionName() const
DocumentVersionInfo & WithStatusInformation(StatusInformationT &&value)
AWS_SSM_API DocumentVersionInfo()=default
DocumentVersionInfo & WithDocumentFormat(DocumentFormat value)
DocumentVersionInfo & WithCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
void SetDocumentVersion(DocumentVersionT &&value)
const Aws::String & GetName() const
DocumentVersionInfo & WithName(NameT &&value)
const Aws::String & GetDisplayName() const
void SetStatusInformation(StatusInformationT &&value)
DocumentVersionInfo & WithVersionName(VersionNameT &&value)
DocumentVersionInfo & WithStatus(DocumentStatus value)
void SetVersionName(VersionNameT &&value)
DocumentVersionInfo & WithIsDefaultVersion(bool value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentVersionInfo & WithReviewStatus(ReviewStatus value)
const Aws::String & GetDocumentVersion() const
void SetDisplayName(DisplayNameT &&value)
DocumentVersionInfo & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetStatusInformation() const
AWS_SSM_API DocumentVersionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentVersionInfo & WithDocumentVersion(DocumentVersionT &&value)
void SetCreatedDate(CreatedDateT &&value)
AWS_SSM_API DocumentVersionInfo(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue