AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetDeploymentResult.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/DeploymentLifecycle.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace MainframeModernization {
24namespace Model {
26 public:
27 AWS_MAINFRAMEMODERNIZATION_API GetDeploymentResult() = default;
30
32
35 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
36 template <typename ApplicationIdT = Aws::String>
37 void SetApplicationId(ApplicationIdT&& value) {
38 m_applicationIdHasBeenSet = true;
39 m_applicationId = std::forward<ApplicationIdT>(value);
40 }
41 template <typename ApplicationIdT = Aws::String>
42 GetDeploymentResult& WithApplicationId(ApplicationIdT&& value) {
43 SetApplicationId(std::forward<ApplicationIdT>(value));
44 return *this;
45 }
47
49
52 inline int GetApplicationVersion() const { return m_applicationVersion; }
53 inline void SetApplicationVersion(int value) {
54 m_applicationVersionHasBeenSet = true;
55 m_applicationVersion = value;
56 }
59 return *this;
60 }
62
64
67 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
68 template <typename CreationTimeT = Aws::Utils::DateTime>
69 void SetCreationTime(CreationTimeT&& value) {
70 m_creationTimeHasBeenSet = true;
71 m_creationTime = std::forward<CreationTimeT>(value);
72 }
73 template <typename CreationTimeT = Aws::Utils::DateTime>
74 GetDeploymentResult& WithCreationTime(CreationTimeT&& value) {
75 SetCreationTime(std::forward<CreationTimeT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
85 template <typename DeploymentIdT = Aws::String>
86 void SetDeploymentId(DeploymentIdT&& value) {
87 m_deploymentIdHasBeenSet = true;
88 m_deploymentId = std::forward<DeploymentIdT>(value);
89 }
90 template <typename DeploymentIdT = Aws::String>
91 GetDeploymentResult& WithDeploymentId(DeploymentIdT&& value) {
92 SetDeploymentId(std::forward<DeploymentIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
102 template <typename EnvironmentIdT = Aws::String>
103 void SetEnvironmentId(EnvironmentIdT&& value) {
104 m_environmentIdHasBeenSet = true;
105 m_environmentId = std::forward<EnvironmentIdT>(value);
106 }
107 template <typename EnvironmentIdT = Aws::String>
108 GetDeploymentResult& WithEnvironmentId(EnvironmentIdT&& value) {
109 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
110 return *this;
111 }
113
115
118 inline DeploymentLifecycle GetStatus() const { return m_status; }
119 inline void SetStatus(DeploymentLifecycle value) {
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
134 template <typename StatusReasonT = Aws::String>
135 void SetStatusReason(StatusReasonT&& value) {
136 m_statusReasonHasBeenSet = true;
137 m_statusReason = std::forward<StatusReasonT>(value);
138 }
139 template <typename StatusReasonT = Aws::String>
140 GetDeploymentResult& WithStatusReason(StatusReasonT&& value) {
141 SetStatusReason(std::forward<StatusReasonT>(value));
142 return *this;
143 }
145
147
148 inline const Aws::String& GetRequestId() const { return m_requestId; }
149 template <typename RequestIdT = Aws::String>
150 void SetRequestId(RequestIdT&& value) {
151 m_requestIdHasBeenSet = true;
152 m_requestId = std::forward<RequestIdT>(value);
153 }
154 template <typename RequestIdT = Aws::String>
155 GetDeploymentResult& WithRequestId(RequestIdT&& value) {
156 SetRequestId(std::forward<RequestIdT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_applicationId;
162
163 int m_applicationVersion{0};
164
165 Aws::Utils::DateTime m_creationTime{};
166
167 Aws::String m_deploymentId;
168
169 Aws::String m_environmentId;
170
172
173 Aws::String m_statusReason;
174
175 Aws::String m_requestId;
176 bool m_applicationIdHasBeenSet = false;
177 bool m_applicationVersionHasBeenSet = false;
178 bool m_creationTimeHasBeenSet = false;
179 bool m_deploymentIdHasBeenSet = false;
180 bool m_environmentIdHasBeenSet = false;
181 bool m_statusHasBeenSet = false;
182 bool m_statusReasonHasBeenSet = false;
183 bool m_requestIdHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace MainframeModernization
188} // namespace Aws
GetDeploymentResult & WithEnvironmentId(EnvironmentIdT &&value)
GetDeploymentResult & WithDeploymentId(DeploymentIdT &&value)
GetDeploymentResult & WithRequestId(RequestIdT &&value)
AWS_MAINFRAMEMODERNIZATION_API GetDeploymentResult()=default
GetDeploymentResult & WithStatusReason(StatusReasonT &&value)
AWS_MAINFRAMEMODERNIZATION_API GetDeploymentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentResult & WithStatus(DeploymentLifecycle value)
GetDeploymentResult & WithCreationTime(CreationTimeT &&value)
GetDeploymentResult & WithApplicationId(ApplicationIdT &&value)
AWS_MAINFRAMEMODERNIZATION_API GetDeploymentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue