AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ServiceInstanceState.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/proton/Proton_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Proton {
21namespace Model {
22
30 public:
31 AWS_PROTON_API ServiceInstanceState() = default;
34 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<Aws::String>& GetLastSuccessfulComponentDeploymentIds() const { return m_lastSuccessfulComponentDeploymentIds; }
42 inline bool LastSuccessfulComponentDeploymentIdsHasBeenSet() const { return m_lastSuccessfulComponentDeploymentIdsHasBeenSet; }
43 template <typename LastSuccessfulComponentDeploymentIdsT = Aws::Vector<Aws::String>>
44 void SetLastSuccessfulComponentDeploymentIds(LastSuccessfulComponentDeploymentIdsT&& value) {
45 m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true;
46 m_lastSuccessfulComponentDeploymentIds = std::forward<LastSuccessfulComponentDeploymentIdsT>(value);
47 }
48 template <typename LastSuccessfulComponentDeploymentIdsT = Aws::Vector<Aws::String>>
49 ServiceInstanceState& WithLastSuccessfulComponentDeploymentIds(LastSuccessfulComponentDeploymentIdsT&& value) {
50 SetLastSuccessfulComponentDeploymentIds(std::forward<LastSuccessfulComponentDeploymentIdsT>(value));
51 return *this;
52 }
53 template <typename LastSuccessfulComponentDeploymentIdsT = Aws::String>
54 ServiceInstanceState& AddLastSuccessfulComponentDeploymentIds(LastSuccessfulComponentDeploymentIdsT&& value) {
55 m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true;
56 m_lastSuccessfulComponentDeploymentIds.emplace_back(std::forward<LastSuccessfulComponentDeploymentIdsT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetLastSuccessfulEnvironmentDeploymentId() const { return m_lastSuccessfulEnvironmentDeploymentId; }
67 inline bool LastSuccessfulEnvironmentDeploymentIdHasBeenSet() const { return m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet; }
68 template <typename LastSuccessfulEnvironmentDeploymentIdT = Aws::String>
69 void SetLastSuccessfulEnvironmentDeploymentId(LastSuccessfulEnvironmentDeploymentIdT&& value) {
70 m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = true;
71 m_lastSuccessfulEnvironmentDeploymentId = std::forward<LastSuccessfulEnvironmentDeploymentIdT>(value);
72 }
73 template <typename LastSuccessfulEnvironmentDeploymentIdT = Aws::String>
74 ServiceInstanceState& WithLastSuccessfulEnvironmentDeploymentId(LastSuccessfulEnvironmentDeploymentIdT&& value) {
75 SetLastSuccessfulEnvironmentDeploymentId(std::forward<LastSuccessfulEnvironmentDeploymentIdT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetLastSuccessfulServicePipelineDeploymentId() const { return m_lastSuccessfulServicePipelineDeploymentId; }
86 inline bool LastSuccessfulServicePipelineDeploymentIdHasBeenSet() const { return m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet; }
87 template <typename LastSuccessfulServicePipelineDeploymentIdT = Aws::String>
88 void SetLastSuccessfulServicePipelineDeploymentId(LastSuccessfulServicePipelineDeploymentIdT&& value) {
89 m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = true;
90 m_lastSuccessfulServicePipelineDeploymentId = std::forward<LastSuccessfulServicePipelineDeploymentIdT>(value);
91 }
92 template <typename LastSuccessfulServicePipelineDeploymentIdT = Aws::String>
93 ServiceInstanceState& WithLastSuccessfulServicePipelineDeploymentId(LastSuccessfulServicePipelineDeploymentIdT&& value) {
94 SetLastSuccessfulServicePipelineDeploymentId(std::forward<LastSuccessfulServicePipelineDeploymentIdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetSpec() const { return m_spec; }
104 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
105 template <typename SpecT = Aws::String>
106 void SetSpec(SpecT&& value) {
107 m_specHasBeenSet = true;
108 m_spec = std::forward<SpecT>(value);
109 }
110 template <typename SpecT = Aws::String>
112 SetSpec(std::forward<SpecT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
123 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
124 template <typename TemplateMajorVersionT = Aws::String>
125 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) {
126 m_templateMajorVersionHasBeenSet = true;
127 m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value);
128 }
129 template <typename TemplateMajorVersionT = Aws::String>
130 ServiceInstanceState& WithTemplateMajorVersion(TemplateMajorVersionT&& value) {
131 SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
142 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
143 template <typename TemplateMinorVersionT = Aws::String>
144 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) {
145 m_templateMinorVersionHasBeenSet = true;
146 m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value);
147 }
148 template <typename TemplateMinorVersionT = Aws::String>
149 ServiceInstanceState& WithTemplateMinorVersion(TemplateMinorVersionT&& value) {
150 SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetTemplateName() const { return m_templateName; }
161 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
162 template <typename TemplateNameT = Aws::String>
163 void SetTemplateName(TemplateNameT&& value) {
164 m_templateNameHasBeenSet = true;
165 m_templateName = std::forward<TemplateNameT>(value);
166 }
167 template <typename TemplateNameT = Aws::String>
168 ServiceInstanceState& WithTemplateName(TemplateNameT&& value) {
169 SetTemplateName(std::forward<TemplateNameT>(value));
170 return *this;
171 }
173 private:
174 Aws::Vector<Aws::String> m_lastSuccessfulComponentDeploymentIds;
175
176 Aws::String m_lastSuccessfulEnvironmentDeploymentId;
177
178 Aws::String m_lastSuccessfulServicePipelineDeploymentId;
179
180 Aws::String m_spec;
181
182 Aws::String m_templateMajorVersion;
183
184 Aws::String m_templateMinorVersion;
185
186 Aws::String m_templateName;
187 bool m_lastSuccessfulComponentDeploymentIdsHasBeenSet = false;
188 bool m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = false;
189 bool m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = false;
190 bool m_specHasBeenSet = false;
191 bool m_templateMajorVersionHasBeenSet = false;
192 bool m_templateMinorVersionHasBeenSet = false;
193 bool m_templateNameHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace Proton
198} // namespace Aws
void SetTemplateMinorVersion(TemplateMinorVersionT &&value)
const Aws::String & GetLastSuccessfulEnvironmentDeploymentId() const
const Aws::String & GetLastSuccessfulServicePipelineDeploymentId() const
AWS_PROTON_API ServiceInstanceState()=default
ServiceInstanceState & WithTemplateMajorVersion(TemplateMajorVersionT &&value)
const Aws::String & GetTemplateMajorVersion() const
void SetLastSuccessfulComponentDeploymentIds(LastSuccessfulComponentDeploymentIdsT &&value)
void SetLastSuccessfulServicePipelineDeploymentId(LastSuccessfulServicePipelineDeploymentIdT &&value)
void SetLastSuccessfulEnvironmentDeploymentId(LastSuccessfulEnvironmentDeploymentIdT &&value)
ServiceInstanceState & WithSpec(SpecT &&value)
ServiceInstanceState & WithLastSuccessfulComponentDeploymentIds(LastSuccessfulComponentDeploymentIdsT &&value)
ServiceInstanceState & AddLastSuccessfulComponentDeploymentIds(LastSuccessfulComponentDeploymentIdsT &&value)
void SetTemplateMajorVersion(TemplateMajorVersionT &&value)
ServiceInstanceState & WithLastSuccessfulEnvironmentDeploymentId(LastSuccessfulEnvironmentDeploymentIdT &&value)
AWS_PROTON_API ServiceInstanceState & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceInstanceState & WithTemplateName(TemplateNameT &&value)
ServiceInstanceState & WithTemplateMinorVersion(TemplateMinorVersionT &&value)
ServiceInstanceState & WithLastSuccessfulServicePipelineDeploymentId(LastSuccessfulServicePipelineDeploymentIdT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTemplateMinorVersion() const
AWS_PROTON_API ServiceInstanceState(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetLastSuccessfulComponentDeploymentIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue