AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DocumentVersionInfo.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ssm/model/DocumentFormat.h>
11#include <aws/ssm/model/DocumentStatus.h>
12#include <aws/ssm/model/ReviewStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSM
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SSM_API DocumentVersionInfo() = default;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 DocumentVersionInfo& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
66 template<typename DisplayNameT = Aws::String>
67 DocumentVersionInfo& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
75 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
76 template<typename DocumentVersionT = Aws::String>
77 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
78 template<typename DocumentVersionT = Aws::String>
79 DocumentVersionInfo& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
81
83
88 inline const Aws::String& GetVersionName() const { return m_versionName; }
89 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
90 template<typename VersionNameT = Aws::String>
91 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
92 template<typename VersionNameT = Aws::String>
93 DocumentVersionInfo& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
101 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
102 template<typename CreatedDateT = Aws::Utils::DateTime>
103 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
104 template<typename CreatedDateT = Aws::Utils::DateTime>
105 DocumentVersionInfo& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
107
109
112 inline bool GetIsDefaultVersion() const { return m_isDefaultVersion; }
113 inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; }
114 inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
115 inline DocumentVersionInfo& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
117
119
122 inline DocumentFormat GetDocumentFormat() const { return m_documentFormat; }
123 inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; }
124 inline void SetDocumentFormat(DocumentFormat value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; }
127
129
133 inline DocumentStatus GetStatus() const { return m_status; }
134 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 inline void SetStatus(DocumentStatus value) { m_statusHasBeenSet = true; m_status = value; }
136 inline DocumentVersionInfo& WithStatus(DocumentStatus value) { SetStatus(value); return *this;}
138
140
146 inline const Aws::String& GetStatusInformation() const { return m_statusInformation; }
147 inline bool StatusInformationHasBeenSet() const { return m_statusInformationHasBeenSet; }
148 template<typename StatusInformationT = Aws::String>
149 void SetStatusInformation(StatusInformationT&& value) { m_statusInformationHasBeenSet = true; m_statusInformation = std::forward<StatusInformationT>(value); }
150 template<typename StatusInformationT = Aws::String>
151 DocumentVersionInfo& WithStatusInformation(StatusInformationT&& value) { SetStatusInformation(std::forward<StatusInformationT>(value)); return *this;}
153
155
159 inline ReviewStatus GetReviewStatus() const { return m_reviewStatus; }
160 inline bool ReviewStatusHasBeenSet() const { return m_reviewStatusHasBeenSet; }
161 inline void SetReviewStatus(ReviewStatus value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = value; }
162 inline DocumentVersionInfo& WithReviewStatus(ReviewStatus value) { SetReviewStatus(value); return *this;}
164 private:
165
166 Aws::String m_name;
167 bool m_nameHasBeenSet = false;
168
169 Aws::String m_displayName;
170 bool m_displayNameHasBeenSet = false;
171
172 Aws::String m_documentVersion;
173 bool m_documentVersionHasBeenSet = false;
174
175 Aws::String m_versionName;
176 bool m_versionNameHasBeenSet = false;
177
178 Aws::Utils::DateTime m_createdDate{};
179 bool m_createdDateHasBeenSet = false;
180
181 bool m_isDefaultVersion{false};
182 bool m_isDefaultVersionHasBeenSet = false;
183
184 DocumentFormat m_documentFormat{DocumentFormat::NOT_SET};
185 bool m_documentFormatHasBeenSet = false;
186
188 bool m_statusHasBeenSet = false;
189
190 Aws::String m_statusInformation;
191 bool m_statusInformationHasBeenSet = false;
192
193 ReviewStatus m_reviewStatus{ReviewStatus::NOT_SET};
194 bool m_reviewStatusHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace SSM
199} // 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