AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ServiceTemplate.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
31 public:
32 AWS_PROTON_API ServiceTemplate() = default;
35 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 ServiceTemplate& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
60 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
61 template <typename CreatedAtT = Aws::Utils::DateTime>
62 void SetCreatedAt(CreatedAtT&& value) {
63 m_createdAtHasBeenSet = true;
64 m_createdAt = std::forward<CreatedAtT>(value);
65 }
66 template <typename CreatedAtT = Aws::Utils::DateTime>
67 ServiceTemplate& WithCreatedAt(CreatedAtT&& value) {
68 SetCreatedAt(std::forward<CreatedAtT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 ServiceTemplate& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
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 ServiceTemplate& WithDisplayName(DisplayNameT&& value) {
104 SetDisplayName(std::forward<DisplayNameT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
115 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
116 template <typename EncryptionKeyT = Aws::String>
117 void SetEncryptionKey(EncryptionKeyT&& value) {
118 m_encryptionKeyHasBeenSet = true;
119 m_encryptionKey = std::forward<EncryptionKeyT>(value);
120 }
121 template <typename EncryptionKeyT = Aws::String>
122 ServiceTemplate& WithEncryptionKey(EncryptionKeyT&& value) {
123 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
133 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
134 template <typename LastModifiedAtT = Aws::Utils::DateTime>
135 void SetLastModifiedAt(LastModifiedAtT&& value) {
136 m_lastModifiedAtHasBeenSet = true;
137 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
138 }
139 template <typename LastModifiedAtT = Aws::Utils::DateTime>
140 ServiceTemplate& WithLastModifiedAt(LastModifiedAtT&& value) {
141 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetName() const { return m_name; }
151 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
152 template <typename NameT = Aws::String>
153 void SetName(NameT&& value) {
154 m_nameHasBeenSet = true;
155 m_name = std::forward<NameT>(value);
156 }
157 template <typename NameT = Aws::String>
158 ServiceTemplate& WithName(NameT&& value) {
159 SetName(std::forward<NameT>(value));
160 return *this;
161 }
163
165
170 inline Provisioning GetPipelineProvisioning() const { return m_pipelineProvisioning; }
171 inline bool PipelineProvisioningHasBeenSet() const { return m_pipelineProvisioningHasBeenSet; }
173 m_pipelineProvisioningHasBeenSet = true;
174 m_pipelineProvisioning = value;
175 }
178 return *this;
179 }
181
183
186 inline const Aws::String& GetRecommendedVersion() const { return m_recommendedVersion; }
187 inline bool RecommendedVersionHasBeenSet() const { return m_recommendedVersionHasBeenSet; }
188 template <typename RecommendedVersionT = Aws::String>
189 void SetRecommendedVersion(RecommendedVersionT&& value) {
190 m_recommendedVersionHasBeenSet = true;
191 m_recommendedVersion = std::forward<RecommendedVersionT>(value);
192 }
193 template <typename RecommendedVersionT = Aws::String>
194 ServiceTemplate& WithRecommendedVersion(RecommendedVersionT&& value) {
195 SetRecommendedVersion(std::forward<RecommendedVersionT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_arn;
201
202 Aws::Utils::DateTime m_createdAt{};
203
204 Aws::String m_description;
205
206 Aws::String m_displayName;
207
208 Aws::String m_encryptionKey;
209
210 Aws::Utils::DateTime m_lastModifiedAt{};
211
212 Aws::String m_name;
213
214 Provisioning m_pipelineProvisioning{Provisioning::NOT_SET};
215
216 Aws::String m_recommendedVersion;
217 bool m_arnHasBeenSet = false;
218 bool m_createdAtHasBeenSet = false;
219 bool m_descriptionHasBeenSet = false;
220 bool m_displayNameHasBeenSet = false;
221 bool m_encryptionKeyHasBeenSet = false;
222 bool m_lastModifiedAtHasBeenSet = false;
223 bool m_nameHasBeenSet = false;
224 bool m_pipelineProvisioningHasBeenSet = false;
225 bool m_recommendedVersionHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace Proton
230} // namespace Aws
AWS_PROTON_API ServiceTemplate()=default
ServiceTemplate & WithDisplayName(DisplayNameT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
Provisioning GetPipelineProvisioning() const
void SetEncryptionKey(EncryptionKeyT &&value)
void SetDisplayName(DisplayNameT &&value)
ServiceTemplate & WithEncryptionKey(EncryptionKeyT &&value)
const Aws::String & GetArn() const
ServiceTemplate & WithName(NameT &&value)
AWS_PROTON_API ServiceTemplate(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModifiedAt() const
ServiceTemplate & WithArn(ArnT &&value)
ServiceTemplate & WithRecommendedVersion(RecommendedVersionT &&value)
const Aws::String & GetRecommendedVersion() const
const Aws::String & GetDisplayName() const
const Aws::String & GetEncryptionKey() const
ServiceTemplate & WithPipelineProvisioning(Provisioning value)
void SetRecommendedVersion(RecommendedVersionT &&value)
void SetDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_PROTON_API ServiceTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceTemplate & WithDescription(DescriptionT &&value)
ServiceTemplate & WithCreatedAt(CreatedAtT &&value)
ServiceTemplate & WithLastModifiedAt(LastModifiedAtT &&value)
const Aws::String & GetName() const
void SetPipelineProvisioning(Provisioning value)
const Aws::String & GetDescription() const
void SetCreatedAt(CreatedAtT &&value)
void SetLastModifiedAt(LastModifiedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue