AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceInstanceState.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Proton
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PROTON_API ServiceInstanceState();
39 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetLastSuccessfulComponentDeploymentIds() const{ return m_lastSuccessfulComponentDeploymentIds; }
48 inline bool LastSuccessfulComponentDeploymentIdsHasBeenSet() const { return m_lastSuccessfulComponentDeploymentIdsHasBeenSet; }
49 inline void SetLastSuccessfulComponentDeploymentIds(const Aws::Vector<Aws::String>& value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds = value; }
50 inline void SetLastSuccessfulComponentDeploymentIds(Aws::Vector<Aws::String>&& value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds = std::move(value); }
53 inline ServiceInstanceState& AddLastSuccessfulComponentDeploymentIds(const Aws::String& value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds.push_back(value); return *this; }
54 inline ServiceInstanceState& AddLastSuccessfulComponentDeploymentIds(Aws::String&& value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds.push_back(std::move(value)); return *this; }
55 inline ServiceInstanceState& AddLastSuccessfulComponentDeploymentIds(const char* value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds.push_back(value); return *this; }
57
59
63 inline const Aws::String& GetLastSuccessfulEnvironmentDeploymentId() const{ return m_lastSuccessfulEnvironmentDeploymentId; }
64 inline bool LastSuccessfulEnvironmentDeploymentIdHasBeenSet() const { return m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet; }
65 inline void SetLastSuccessfulEnvironmentDeploymentId(const Aws::String& value) { m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = true; m_lastSuccessfulEnvironmentDeploymentId = value; }
66 inline void SetLastSuccessfulEnvironmentDeploymentId(Aws::String&& value) { m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = true; m_lastSuccessfulEnvironmentDeploymentId = std::move(value); }
67 inline void SetLastSuccessfulEnvironmentDeploymentId(const char* value) { m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = true; m_lastSuccessfulEnvironmentDeploymentId.assign(value); }
72
74
78 inline const Aws::String& GetLastSuccessfulServicePipelineDeploymentId() const{ return m_lastSuccessfulServicePipelineDeploymentId; }
79 inline bool LastSuccessfulServicePipelineDeploymentIdHasBeenSet() const { return m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet; }
80 inline void SetLastSuccessfulServicePipelineDeploymentId(const Aws::String& value) { m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = true; m_lastSuccessfulServicePipelineDeploymentId = value; }
81 inline void SetLastSuccessfulServicePipelineDeploymentId(Aws::String&& value) { m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = true; m_lastSuccessfulServicePipelineDeploymentId = std::move(value); }
82 inline void SetLastSuccessfulServicePipelineDeploymentId(const char* value) { m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = true; m_lastSuccessfulServicePipelineDeploymentId.assign(value); }
87
89
92 inline const Aws::String& GetSpec() const{ return m_spec; }
93 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
94 inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; }
95 inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
96 inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); }
97 inline ServiceInstanceState& WithSpec(const Aws::String& value) { SetSpec(value); return *this;}
98 inline ServiceInstanceState& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;}
99 inline ServiceInstanceState& WithSpec(const char* value) { SetSpec(value); return *this;}
101
103
107 inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; }
108 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
109 inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; }
110 inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); }
111 inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); }
113 inline ServiceInstanceState& WithTemplateMajorVersion(Aws::String&& value) { SetTemplateMajorVersion(std::move(value)); return *this;}
114 inline ServiceInstanceState& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;}
116
118
122 inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; }
123 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
124 inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; }
125 inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); }
126 inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); }
128 inline ServiceInstanceState& WithTemplateMinorVersion(Aws::String&& value) { SetTemplateMinorVersion(std::move(value)); return *this;}
129 inline ServiceInstanceState& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;}
131
133
137 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
138 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
139 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
140 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
141 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
142 inline ServiceInstanceState& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
143 inline ServiceInstanceState& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
144 inline ServiceInstanceState& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
146 private:
147
148 Aws::Vector<Aws::String> m_lastSuccessfulComponentDeploymentIds;
149 bool m_lastSuccessfulComponentDeploymentIdsHasBeenSet = false;
150
151 Aws::String m_lastSuccessfulEnvironmentDeploymentId;
152 bool m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = false;
153
154 Aws::String m_lastSuccessfulServicePipelineDeploymentId;
155 bool m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = false;
156
157 Aws::String m_spec;
158 bool m_specHasBeenSet = false;
159
160 Aws::String m_templateMajorVersion;
161 bool m_templateMajorVersionHasBeenSet = false;
162
163 Aws::String m_templateMinorVersion;
164 bool m_templateMinorVersionHasBeenSet = false;
165
166 Aws::String m_templateName;
167 bool m_templateNameHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace Proton
172} // namespace Aws
ServiceInstanceState & WithSpec(Aws::String &&value)
const Aws::String & GetLastSuccessfulEnvironmentDeploymentId() const
const Aws::String & GetLastSuccessfulServicePipelineDeploymentId() const
void SetLastSuccessfulEnvironmentDeploymentId(const Aws::String &value)
ServiceInstanceState & AddLastSuccessfulComponentDeploymentIds(const Aws::String &value)
ServiceInstanceState & WithLastSuccessfulComponentDeploymentIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetTemplateMajorVersion() const
void SetLastSuccessfulComponentDeploymentIds(const Aws::Vector< Aws::String > &value)
ServiceInstanceState & WithTemplateName(Aws::String &&value)
void SetTemplateMinorVersion(const Aws::String &value)
void SetLastSuccessfulEnvironmentDeploymentId(const char *value)
void SetLastSuccessfulServicePipelineDeploymentId(const char *value)
ServiceInstanceState & WithLastSuccessfulEnvironmentDeploymentId(const Aws::String &value)
ServiceInstanceState & WithTemplateMinorVersion(const Aws::String &value)
void SetTemplateMajorVersion(const Aws::String &value)
ServiceInstanceState & WithSpec(const Aws::String &value)
ServiceInstanceState & WithLastSuccessfulEnvironmentDeploymentId(const char *value)
ServiceInstanceState & WithTemplateMinorVersion(const char *value)
void SetLastSuccessfulComponentDeploymentIds(Aws::Vector< Aws::String > &&value)
ServiceInstanceState & WithTemplateMajorVersion(const char *value)
ServiceInstanceState & AddLastSuccessfulComponentDeploymentIds(const char *value)
ServiceInstanceState & WithTemplateMajorVersion(const Aws::String &value)
ServiceInstanceState & WithLastSuccessfulServicePipelineDeploymentId(const Aws::String &value)
AWS_PROTON_API ServiceInstanceState & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceInstanceState & WithTemplateMajorVersion(Aws::String &&value)
void SetLastSuccessfulServicePipelineDeploymentId(Aws::String &&value)
ServiceInstanceState & AddLastSuccessfulComponentDeploymentIds(Aws::String &&value)
ServiceInstanceState & WithTemplateName(const char *value)
ServiceInstanceState & WithLastSuccessfulServicePipelineDeploymentId(const char *value)
void SetLastSuccessfulServicePipelineDeploymentId(const Aws::String &value)
ServiceInstanceState & WithLastSuccessfulServicePipelineDeploymentId(Aws::String &&value)
ServiceInstanceState & WithSpec(const char *value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceInstanceState & WithLastSuccessfulEnvironmentDeploymentId(Aws::String &&value)
ServiceInstanceState & WithTemplateMinorVersion(Aws::String &&value)
const Aws::String & GetTemplateMinorVersion() const
void SetTemplateName(const Aws::String &value)
AWS_PROTON_API ServiceInstanceState(Aws::Utils::Json::JsonView jsonValue)
ServiceInstanceState & WithTemplateName(const Aws::String &value)
ServiceInstanceState & WithLastSuccessfulComponentDeploymentIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetLastSuccessfulComponentDeploymentIds() const
void SetLastSuccessfulEnvironmentDeploymentId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue