AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
EnvironmentTemplate.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/Proton_EXPORTS.h>
10#include <aws/proton/model/Provisioning.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Proton {
22namespace Model {
23
30 public:
31 AWS_PROTON_API EnvironmentTemplate() = default;
34 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
59 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
60 template <typename CreatedAtT = Aws::Utils::DateTime>
61 void SetCreatedAt(CreatedAtT&& value) {
62 m_createdAtHasBeenSet = true;
63 m_createdAt = std::forward<CreatedAtT>(value);
64 }
65 template <typename CreatedAtT = Aws::Utils::DateTime>
66 EnvironmentTemplate& WithCreatedAt(CreatedAtT&& value) {
67 SetCreatedAt(std::forward<CreatedAtT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 EnvironmentTemplate& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetDisplayName() const { return m_displayName; }
96 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
97 template <typename DisplayNameT = Aws::String>
98 void SetDisplayName(DisplayNameT&& value) {
99 m_displayNameHasBeenSet = true;
100 m_displayName = std::forward<DisplayNameT>(value);
101 }
102 template <typename DisplayNameT = Aws::String>
103 EnvironmentTemplate& WithDisplayName(DisplayNameT&& value) {
104 SetDisplayName(std::forward<DisplayNameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
114 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
115 template <typename EncryptionKeyT = Aws::String>
116 void SetEncryptionKey(EncryptionKeyT&& value) {
117 m_encryptionKeyHasBeenSet = true;
118 m_encryptionKey = std::forward<EncryptionKeyT>(value);
119 }
120 template <typename EncryptionKeyT = Aws::String>
121 EnvironmentTemplate& WithEncryptionKey(EncryptionKeyT&& value) {
122 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
132 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
133 template <typename LastModifiedAtT = Aws::Utils::DateTime>
134 void SetLastModifiedAt(LastModifiedAtT&& value) {
135 m_lastModifiedAtHasBeenSet = true;
136 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
137 }
138 template <typename LastModifiedAtT = Aws::Utils::DateTime>
139 EnvironmentTemplate& WithLastModifiedAt(LastModifiedAtT&& value) {
140 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetName() const { return m_name; }
150 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
151 template <typename NameT = Aws::String>
152 void SetName(NameT&& value) {
153 m_nameHasBeenSet = true;
154 m_name = std::forward<NameT>(value);
155 }
156 template <typename NameT = Aws::String>
158 SetName(std::forward<NameT>(value));
159 return *this;
160 }
162
164
168 inline Provisioning GetProvisioning() const { return m_provisioning; }
169 inline bool ProvisioningHasBeenSet() const { return m_provisioningHasBeenSet; }
170 inline void SetProvisioning(Provisioning value) {
171 m_provisioningHasBeenSet = true;
172 m_provisioning = value;
173 }
175 SetProvisioning(value);
176 return *this;
177 }
179
181
184 inline const Aws::String& GetRecommendedVersion() const { return m_recommendedVersion; }
185 inline bool RecommendedVersionHasBeenSet() const { return m_recommendedVersionHasBeenSet; }
186 template <typename RecommendedVersionT = Aws::String>
187 void SetRecommendedVersion(RecommendedVersionT&& value) {
188 m_recommendedVersionHasBeenSet = true;
189 m_recommendedVersion = std::forward<RecommendedVersionT>(value);
190 }
191 template <typename RecommendedVersionT = Aws::String>
192 EnvironmentTemplate& WithRecommendedVersion(RecommendedVersionT&& value) {
193 SetRecommendedVersion(std::forward<RecommendedVersionT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_arn;
199
200 Aws::Utils::DateTime m_createdAt{};
201
202 Aws::String m_description;
203
204 Aws::String m_displayName;
205
206 Aws::String m_encryptionKey;
207
208 Aws::Utils::DateTime m_lastModifiedAt{};
209
210 Aws::String m_name;
211
212 Provisioning m_provisioning{Provisioning::NOT_SET};
213
214 Aws::String m_recommendedVersion;
215 bool m_arnHasBeenSet = false;
216 bool m_createdAtHasBeenSet = false;
217 bool m_descriptionHasBeenSet = false;
218 bool m_displayNameHasBeenSet = false;
219 bool m_encryptionKeyHasBeenSet = false;
220 bool m_lastModifiedAtHasBeenSet = false;
221 bool m_nameHasBeenSet = false;
222 bool m_provisioningHasBeenSet = false;
223 bool m_recommendedVersionHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace Proton
228} // namespace Aws
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentTemplate & WithRecommendedVersion(RecommendedVersionT &&value)
AWS_PROTON_API EnvironmentTemplate()=default
const Aws::String & GetEncryptionKey() const
const Aws::String & GetRecommendedVersion() const
const Aws::Utils::DateTime & GetLastModifiedAt() const
const Aws::String & GetDescription() const
EnvironmentTemplate & WithCreatedAt(CreatedAtT &&value)
void SetEncryptionKey(EncryptionKeyT &&value)
EnvironmentTemplate & WithDescription(DescriptionT &&value)
const Aws::String & GetDisplayName() const
EnvironmentTemplate & WithProvisioning(Provisioning value)
EnvironmentTemplate & WithEncryptionKey(EncryptionKeyT &&value)
void SetRecommendedVersion(RecommendedVersionT &&value)
void SetLastModifiedAt(LastModifiedAtT &&value)
EnvironmentTemplate & WithName(NameT &&value)
AWS_PROTON_API EnvironmentTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
EnvironmentTemplate & WithArn(ArnT &&value)
EnvironmentTemplate & WithLastModifiedAt(LastModifiedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
EnvironmentTemplate & WithDisplayName(DisplayNameT &&value)
AWS_PROTON_API EnvironmentTemplate(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue