AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename LastSuccessfulComponentDeploymentIdsT = Aws::Vector<Aws::String>>
50 void SetLastSuccessfulComponentDeploymentIds(LastSuccessfulComponentDeploymentIdsT&& value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds = std::forward<LastSuccessfulComponentDeploymentIdsT>(value); }
51 template<typename LastSuccessfulComponentDeploymentIdsT = Aws::Vector<Aws::String>>
52 ServiceInstanceState& WithLastSuccessfulComponentDeploymentIds(LastSuccessfulComponentDeploymentIdsT&& value) { SetLastSuccessfulComponentDeploymentIds(std::forward<LastSuccessfulComponentDeploymentIdsT>(value)); return *this;}
53 template<typename LastSuccessfulComponentDeploymentIdsT = Aws::String>
54 ServiceInstanceState& AddLastSuccessfulComponentDeploymentIds(LastSuccessfulComponentDeploymentIdsT&& value) { m_lastSuccessfulComponentDeploymentIdsHasBeenSet = true; m_lastSuccessfulComponentDeploymentIds.emplace_back(std::forward<LastSuccessfulComponentDeploymentIdsT>(value)); return *this; }
56
58
62 inline const Aws::String& GetLastSuccessfulEnvironmentDeploymentId() const { return m_lastSuccessfulEnvironmentDeploymentId; }
63 inline bool LastSuccessfulEnvironmentDeploymentIdHasBeenSet() const { return m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet; }
64 template<typename LastSuccessfulEnvironmentDeploymentIdT = Aws::String>
65 void SetLastSuccessfulEnvironmentDeploymentId(LastSuccessfulEnvironmentDeploymentIdT&& value) { m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = true; m_lastSuccessfulEnvironmentDeploymentId = std::forward<LastSuccessfulEnvironmentDeploymentIdT>(value); }
66 template<typename LastSuccessfulEnvironmentDeploymentIdT = Aws::String>
67 ServiceInstanceState& WithLastSuccessfulEnvironmentDeploymentId(LastSuccessfulEnvironmentDeploymentIdT&& value) { SetLastSuccessfulEnvironmentDeploymentId(std::forward<LastSuccessfulEnvironmentDeploymentIdT>(value)); return *this;}
69
71
75 inline const Aws::String& GetLastSuccessfulServicePipelineDeploymentId() const { return m_lastSuccessfulServicePipelineDeploymentId; }
76 inline bool LastSuccessfulServicePipelineDeploymentIdHasBeenSet() const { return m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet; }
77 template<typename LastSuccessfulServicePipelineDeploymentIdT = Aws::String>
78 void SetLastSuccessfulServicePipelineDeploymentId(LastSuccessfulServicePipelineDeploymentIdT&& value) { m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = true; m_lastSuccessfulServicePipelineDeploymentId = std::forward<LastSuccessfulServicePipelineDeploymentIdT>(value); }
79 template<typename LastSuccessfulServicePipelineDeploymentIdT = Aws::String>
80 ServiceInstanceState& WithLastSuccessfulServicePipelineDeploymentId(LastSuccessfulServicePipelineDeploymentIdT&& value) { SetLastSuccessfulServicePipelineDeploymentId(std::forward<LastSuccessfulServicePipelineDeploymentIdT>(value)); return *this;}
82
84
87 inline const Aws::String& GetSpec() const { return m_spec; }
88 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
89 template<typename SpecT = Aws::String>
90 void SetSpec(SpecT&& value) { m_specHasBeenSet = true; m_spec = std::forward<SpecT>(value); }
91 template<typename SpecT = Aws::String>
92 ServiceInstanceState& WithSpec(SpecT&& value) { SetSpec(std::forward<SpecT>(value)); return *this;}
94
96
100 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
101 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
102 template<typename TemplateMajorVersionT = Aws::String>
103 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value); }
104 template<typename TemplateMajorVersionT = Aws::String>
105 ServiceInstanceState& WithTemplateMajorVersion(TemplateMajorVersionT&& value) { SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value)); return *this;}
107
109
113 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
114 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
115 template<typename TemplateMinorVersionT = Aws::String>
116 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value); }
117 template<typename TemplateMinorVersionT = Aws::String>
118 ServiceInstanceState& WithTemplateMinorVersion(TemplateMinorVersionT&& value) { SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value)); return *this;}
120
122
126 inline const Aws::String& GetTemplateName() const { return m_templateName; }
127 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
128 template<typename TemplateNameT = Aws::String>
129 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
130 template<typename TemplateNameT = Aws::String>
131 ServiceInstanceState& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
133 private:
134
135 Aws::Vector<Aws::String> m_lastSuccessfulComponentDeploymentIds;
136 bool m_lastSuccessfulComponentDeploymentIdsHasBeenSet = false;
137
138 Aws::String m_lastSuccessfulEnvironmentDeploymentId;
139 bool m_lastSuccessfulEnvironmentDeploymentIdHasBeenSet = false;
140
141 Aws::String m_lastSuccessfulServicePipelineDeploymentId;
142 bool m_lastSuccessfulServicePipelineDeploymentIdHasBeenSet = false;
143
144 Aws::String m_spec;
145 bool m_specHasBeenSet = false;
146
147 Aws::String m_templateMajorVersion;
148 bool m_templateMajorVersionHasBeenSet = false;
149
150 Aws::String m_templateMinorVersion;
151 bool m_templateMinorVersionHasBeenSet = false;
152
153 Aws::String m_templateName;
154 bool m_templateNameHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace Proton
159} // 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