AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
CreateDeploymentResult.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/DeploymentStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.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 ApiGatewayV2 {
25namespace Model {
27 public:
28 AWS_APIGATEWAYV2_API CreateDeploymentResult() = default;
31
33
36 inline bool GetAutoDeployed() const { return m_autoDeployed; }
37 inline void SetAutoDeployed(bool value) {
38 m_autoDeployedHasBeenSet = true;
39 m_autoDeployed = value;
40 }
42 SetAutoDeployed(value);
43 return *this;
44 }
46
48
51 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
52 template <typename CreatedDateT = Aws::Utils::DateTime>
53 void SetCreatedDate(CreatedDateT&& value) {
54 m_createdDateHasBeenSet = true;
55 m_createdDate = std::forward<CreatedDateT>(value);
56 }
57 template <typename CreatedDateT = Aws::Utils::DateTime>
58 CreateDeploymentResult& WithCreatedDate(CreatedDateT&& value) {
59 SetCreatedDate(std::forward<CreatedDateT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
69 template <typename DeploymentIdT = Aws::String>
70 void SetDeploymentId(DeploymentIdT&& value) {
71 m_deploymentIdHasBeenSet = true;
72 m_deploymentId = std::forward<DeploymentIdT>(value);
73 }
74 template <typename DeploymentIdT = Aws::String>
75 CreateDeploymentResult& WithDeploymentId(DeploymentIdT&& value) {
76 SetDeploymentId(std::forward<DeploymentIdT>(value));
77 return *this;
78 }
80
82
85 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
87 m_deploymentStatusHasBeenSet = true;
88 m_deploymentStatus = value;
89 }
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
101 template <typename DeploymentStatusMessageT = Aws::String>
102 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
103 m_deploymentStatusMessageHasBeenSet = true;
104 m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value);
105 }
106 template <typename DeploymentStatusMessageT = Aws::String>
107 CreateDeploymentResult& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
108 SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetDescription() const { return m_description; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
132 inline const Aws::String& GetRequestId() const { return m_requestId; }
133 template <typename RequestIdT = Aws::String>
134 void SetRequestId(RequestIdT&& value) {
135 m_requestIdHasBeenSet = true;
136 m_requestId = std::forward<RequestIdT>(value);
137 }
138 template <typename RequestIdT = Aws::String>
140 SetRequestId(std::forward<RequestIdT>(value));
141 return *this;
142 }
144 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
145
146 private:
147 bool m_autoDeployed{false};
148
149 Aws::Utils::DateTime m_createdDate{};
150
151 Aws::String m_deploymentId;
152
154
155 Aws::String m_deploymentStatusMessage;
156
157 Aws::String m_description;
158
159 Aws::String m_requestId;
160 Aws::Http::HttpResponseCode m_HttpResponseCode;
161 bool m_autoDeployedHasBeenSet = false;
162 bool m_createdDateHasBeenSet = false;
163 bool m_deploymentIdHasBeenSet = false;
164 bool m_deploymentStatusHasBeenSet = false;
165 bool m_deploymentStatusMessageHasBeenSet = false;
166 bool m_descriptionHasBeenSet = false;
167 bool m_requestIdHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace ApiGatewayV2
172} // namespace Aws
AWS_APIGATEWAYV2_API CreateDeploymentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAYV2_API CreateDeploymentResult()=default
const Aws::Utils::DateTime & GetCreatedDate() const
CreateDeploymentResult & WithRequestId(RequestIdT &&value)
CreateDeploymentResult & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
CreateDeploymentResult & WithDescription(DescriptionT &&value)
CreateDeploymentResult & WithDeploymentId(DeploymentIdT &&value)
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
CreateDeploymentResult & WithAutoDeployed(bool value)
AWS_APIGATEWAYV2_API CreateDeploymentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateDeploymentResult & WithDeploymentStatus(DeploymentStatus value)
CreateDeploymentResult & WithCreatedDate(CreatedDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue