AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EnvironmentSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/m2/MainframeModernization_EXPORTS.h>
10#include <aws/m2/model/EngineType.h>
11#include <aws/m2/model/EnvironmentLifecycle.h>
12#include <aws/m2/model/NetworkType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MainframeModernization {
24namespace Model {
25
33 public:
34 AWS_MAINFRAMEMODERNIZATION_API EnvironmentSummary() = default;
35 AWS_MAINFRAMEMODERNIZATION_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MAINFRAMEMODERNIZATION_API EnvironmentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
44 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
45 template <typename CreationTimeT = Aws::Utils::DateTime>
46 void SetCreationTime(CreationTimeT&& value) {
47 m_creationTimeHasBeenSet = true;
48 m_creationTime = std::forward<CreationTimeT>(value);
49 }
50 template <typename CreationTimeT = Aws::Utils::DateTime>
51 EnvironmentSummary& WithCreationTime(CreationTimeT&& value) {
52 SetCreationTime(std::forward<CreationTimeT>(value));
53 return *this;
54 }
56
58
61 inline EngineType GetEngineType() const { return m_engineType; }
62 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
63 inline void SetEngineType(EngineType value) {
64 m_engineTypeHasBeenSet = true;
65 m_engineType = value;
66 }
68 SetEngineType(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
78 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
79 template <typename EngineVersionT = Aws::String>
80 void SetEngineVersion(EngineVersionT&& value) {
81 m_engineVersionHasBeenSet = true;
82 m_engineVersion = std::forward<EngineVersionT>(value);
83 }
84 template <typename EngineVersionT = Aws::String>
85 EnvironmentSummary& WithEngineVersion(EngineVersionT&& value) {
86 SetEngineVersion(std::forward<EngineVersionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
96 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
97 template <typename EnvironmentArnT = Aws::String>
98 void SetEnvironmentArn(EnvironmentArnT&& value) {
99 m_environmentArnHasBeenSet = true;
100 m_environmentArn = std::forward<EnvironmentArnT>(value);
101 }
102 template <typename EnvironmentArnT = Aws::String>
103 EnvironmentSummary& WithEnvironmentArn(EnvironmentArnT&& value) {
104 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
114 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
115 template <typename EnvironmentIdT = Aws::String>
116 void SetEnvironmentId(EnvironmentIdT&& value) {
117 m_environmentIdHasBeenSet = true;
118 m_environmentId = std::forward<EnvironmentIdT>(value);
119 }
120 template <typename EnvironmentIdT = Aws::String>
121 EnvironmentSummary& WithEnvironmentId(EnvironmentIdT&& value) {
122 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
132 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
133 template <typename InstanceTypeT = Aws::String>
134 void SetInstanceType(InstanceTypeT&& value) {
135 m_instanceTypeHasBeenSet = true;
136 m_instanceType = std::forward<InstanceTypeT>(value);
137 }
138 template <typename InstanceTypeT = Aws::String>
139 EnvironmentSummary& WithInstanceType(InstanceTypeT&& value) {
140 SetInstanceType(std::forward<InstanceTypeT>(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>
157 EnvironmentSummary& WithName(NameT&& value) {
158 SetName(std::forward<NameT>(value));
159 return *this;
160 }
162
164
167 inline NetworkType GetNetworkType() const { return m_networkType; }
168 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
169 inline void SetNetworkType(NetworkType value) {
170 m_networkTypeHasBeenSet = true;
171 m_networkType = value;
172 }
174 SetNetworkType(value);
175 return *this;
176 }
178
180
183 inline EnvironmentLifecycle GetStatus() const { return m_status; }
184 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
185 inline void SetStatus(EnvironmentLifecycle value) {
186 m_statusHasBeenSet = true;
187 m_status = value;
188 }
190 SetStatus(value);
191 return *this;
192 }
194 private:
195 Aws::Utils::DateTime m_creationTime{};
196
197 EngineType m_engineType{EngineType::NOT_SET};
198
199 Aws::String m_engineVersion;
200
201 Aws::String m_environmentArn;
202
203 Aws::String m_environmentId;
204
205 Aws::String m_instanceType;
206
207 Aws::String m_name;
208
209 NetworkType m_networkType{NetworkType::NOT_SET};
210
212 bool m_creationTimeHasBeenSet = false;
213 bool m_engineTypeHasBeenSet = false;
214 bool m_engineVersionHasBeenSet = false;
215 bool m_environmentArnHasBeenSet = false;
216 bool m_environmentIdHasBeenSet = false;
217 bool m_instanceTypeHasBeenSet = false;
218 bool m_nameHasBeenSet = false;
219 bool m_networkTypeHasBeenSet = false;
220 bool m_statusHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace MainframeModernization
225} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
EnvironmentSummary & WithEnvironmentId(EnvironmentIdT &&value)
EnvironmentSummary & WithCreationTime(CreationTimeT &&value)
AWS_MAINFRAMEMODERNIZATION_API EnvironmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentSummary & WithEngineType(EngineType value)
EnvironmentSummary & WithInstanceType(InstanceTypeT &&value)
AWS_MAINFRAMEMODERNIZATION_API EnvironmentSummary()=default
AWS_MAINFRAMEMODERNIZATION_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue)
EnvironmentSummary & WithEngineVersion(EngineVersionT &&value)
EnvironmentSummary & WithNetworkType(NetworkType value)
EnvironmentSummary & WithStatus(EnvironmentLifecycle value)
EnvironmentSummary & WithEnvironmentArn(EnvironmentArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue