AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
GetDeploymentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/m2/MainframeModernization_EXPORTS.h>
11#include <aws/m2/model/DeploymentLifecycle.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MainframeModernization {
25namespace Model {
27 public:
28 AWS_MAINFRAMEMODERNIZATION_API GetDeploymentResult() = default;
31
33
36 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
37 template <typename ApplicationIdT = Aws::String>
38 void SetApplicationId(ApplicationIdT&& value) {
39 m_applicationIdHasBeenSet = true;
40 m_applicationId = std::forward<ApplicationIdT>(value);
41 }
42 template <typename ApplicationIdT = Aws::String>
43 GetDeploymentResult& WithApplicationId(ApplicationIdT&& value) {
44 SetApplicationId(std::forward<ApplicationIdT>(value));
45 return *this;
46 }
48
50
53 inline int GetApplicationVersion() const { return m_applicationVersion; }
54 inline void SetApplicationVersion(int value) {
55 m_applicationVersionHasBeenSet = true;
56 m_applicationVersion = value;
57 }
60 return *this;
61 }
63
65
68 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
69 template <typename CreationTimeT = Aws::Utils::DateTime>
70 void SetCreationTime(CreationTimeT&& value) {
71 m_creationTimeHasBeenSet = true;
72 m_creationTime = std::forward<CreationTimeT>(value);
73 }
74 template <typename CreationTimeT = Aws::Utils::DateTime>
75 GetDeploymentResult& WithCreationTime(CreationTimeT&& value) {
76 SetCreationTime(std::forward<CreationTimeT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
86 template <typename DeploymentIdT = Aws::String>
87 void SetDeploymentId(DeploymentIdT&& value) {
88 m_deploymentIdHasBeenSet = true;
89 m_deploymentId = std::forward<DeploymentIdT>(value);
90 }
91 template <typename DeploymentIdT = Aws::String>
92 GetDeploymentResult& WithDeploymentId(DeploymentIdT&& value) {
93 SetDeploymentId(std::forward<DeploymentIdT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
103 template <typename EnvironmentIdT = Aws::String>
104 void SetEnvironmentId(EnvironmentIdT&& value) {
105 m_environmentIdHasBeenSet = true;
106 m_environmentId = std::forward<EnvironmentIdT>(value);
107 }
108 template <typename EnvironmentIdT = Aws::String>
109 GetDeploymentResult& WithEnvironmentId(EnvironmentIdT&& value) {
110 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
111 return *this;
112 }
114
116
119 inline DeploymentLifecycle GetStatus() const { return m_status; }
120 inline void SetStatus(DeploymentLifecycle value) {
121 m_statusHasBeenSet = true;
122 m_status = value;
123 }
125 SetStatus(value);
126 return *this;
127 }
129
131
134 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
135 template <typename StatusReasonT = Aws::String>
136 void SetStatusReason(StatusReasonT&& value) {
137 m_statusReasonHasBeenSet = true;
138 m_statusReason = std::forward<StatusReasonT>(value);
139 }
140 template <typename StatusReasonT = Aws::String>
141 GetDeploymentResult& WithStatusReason(StatusReasonT&& value) {
142 SetStatusReason(std::forward<StatusReasonT>(value));
143 return *this;
144 }
146
148
149 inline const Aws::String& GetRequestId() const { return m_requestId; }
150 template <typename RequestIdT = Aws::String>
151 void SetRequestId(RequestIdT&& value) {
152 m_requestIdHasBeenSet = true;
153 m_requestId = std::forward<RequestIdT>(value);
154 }
155 template <typename RequestIdT = Aws::String>
156 GetDeploymentResult& WithRequestId(RequestIdT&& value) {
157 SetRequestId(std::forward<RequestIdT>(value));
158 return *this;
159 }
161 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
162
163 private:
164 Aws::String m_applicationId;
165
166 int m_applicationVersion{0};
167
168 Aws::Utils::DateTime m_creationTime{};
169
170 Aws::String m_deploymentId;
171
172 Aws::String m_environmentId;
173
175
176 Aws::String m_statusReason;
177
178 Aws::String m_requestId;
179 Aws::Http::HttpResponseCode m_HttpResponseCode;
180 bool m_applicationIdHasBeenSet = false;
181 bool m_applicationVersionHasBeenSet = false;
182 bool m_creationTimeHasBeenSet = false;
183 bool m_deploymentIdHasBeenSet = false;
184 bool m_environmentIdHasBeenSet = false;
185 bool m_statusHasBeenSet = false;
186 bool m_statusReasonHasBeenSet = false;
187 bool m_requestIdHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace MainframeModernization
192} // 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