1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8 #include <aws/core/utils/DateTime.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/apigatewayv2/model/DeploymentStatus.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22   class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ApiGatewayV2
26 {
27 namespace Model
28 {
29   class AWS_APIGATEWAYV2_API UpdateDeploymentResult
30   {
31   public:
32     UpdateDeploymentResult();
33     UpdateDeploymentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     UpdateDeploymentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>Specifies whether a deployment was automatically released.</p>
39      */
GetAutoDeployed()40     inline bool GetAutoDeployed() const{ return m_autoDeployed; }
41 
42     /**
43      * <p>Specifies whether a deployment was automatically released.</p>
44      */
SetAutoDeployed(bool value)45     inline void SetAutoDeployed(bool value) { m_autoDeployed = value; }
46 
47     /**
48      * <p>Specifies whether a deployment was automatically released.</p>
49      */
WithAutoDeployed(bool value)50     inline UpdateDeploymentResult& WithAutoDeployed(bool value) { SetAutoDeployed(value); return *this;}
51 
52 
53     /**
54      * <p>The date and time when the Deployment resource was created.</p>
55      */
GetCreatedDate()56     inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
57 
58     /**
59      * <p>The date and time when the Deployment resource was created.</p>
60      */
SetCreatedDate(const Aws::Utils::DateTime & value)61     inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
62 
63     /**
64      * <p>The date and time when the Deployment resource was created.</p>
65      */
SetCreatedDate(Aws::Utils::DateTime && value)66     inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
67 
68     /**
69      * <p>The date and time when the Deployment resource was created.</p>
70      */
WithCreatedDate(const Aws::Utils::DateTime & value)71     inline UpdateDeploymentResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
72 
73     /**
74      * <p>The date and time when the Deployment resource was created.</p>
75      */
WithCreatedDate(Aws::Utils::DateTime && value)76     inline UpdateDeploymentResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
77 
78 
79     /**
80      * <p>The identifier for the deployment.</p>
81      */
GetDeploymentId()82     inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
83 
84     /**
85      * <p>The identifier for the deployment.</p>
86      */
SetDeploymentId(const Aws::String & value)87     inline void SetDeploymentId(const Aws::String& value) { m_deploymentId = value; }
88 
89     /**
90      * <p>The identifier for the deployment.</p>
91      */
SetDeploymentId(Aws::String && value)92     inline void SetDeploymentId(Aws::String&& value) { m_deploymentId = std::move(value); }
93 
94     /**
95      * <p>The identifier for the deployment.</p>
96      */
SetDeploymentId(const char * value)97     inline void SetDeploymentId(const char* value) { m_deploymentId.assign(value); }
98 
99     /**
100      * <p>The identifier for the deployment.</p>
101      */
WithDeploymentId(const Aws::String & value)102     inline UpdateDeploymentResult& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
103 
104     /**
105      * <p>The identifier for the deployment.</p>
106      */
WithDeploymentId(Aws::String && value)107     inline UpdateDeploymentResult& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
108 
109     /**
110      * <p>The identifier for the deployment.</p>
111      */
WithDeploymentId(const char * value)112     inline UpdateDeploymentResult& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
113 
114 
115     /**
116      * <p>The status of the deployment: PENDING, FAILED, or SUCCEEDED.</p>
117      */
GetDeploymentStatus()118     inline const DeploymentStatus& GetDeploymentStatus() const{ return m_deploymentStatus; }
119 
120     /**
121      * <p>The status of the deployment: PENDING, FAILED, or SUCCEEDED.</p>
122      */
SetDeploymentStatus(const DeploymentStatus & value)123     inline void SetDeploymentStatus(const DeploymentStatus& value) { m_deploymentStatus = value; }
124 
125     /**
126      * <p>The status of the deployment: PENDING, FAILED, or SUCCEEDED.</p>
127      */
SetDeploymentStatus(DeploymentStatus && value)128     inline void SetDeploymentStatus(DeploymentStatus&& value) { m_deploymentStatus = std::move(value); }
129 
130     /**
131      * <p>The status of the deployment: PENDING, FAILED, or SUCCEEDED.</p>
132      */
WithDeploymentStatus(const DeploymentStatus & value)133     inline UpdateDeploymentResult& WithDeploymentStatus(const DeploymentStatus& value) { SetDeploymentStatus(value); return *this;}
134 
135     /**
136      * <p>The status of the deployment: PENDING, FAILED, or SUCCEEDED.</p>
137      */
WithDeploymentStatus(DeploymentStatus && value)138     inline UpdateDeploymentResult& WithDeploymentStatus(DeploymentStatus&& value) { SetDeploymentStatus(std::move(value)); return *this;}
139 
140 
141     /**
142      * <p>May contain additional feedback on the status of an API deployment.</p>
143      */
GetDeploymentStatusMessage()144     inline const Aws::String& GetDeploymentStatusMessage() const{ return m_deploymentStatusMessage; }
145 
146     /**
147      * <p>May contain additional feedback on the status of an API deployment.</p>
148      */
SetDeploymentStatusMessage(const Aws::String & value)149     inline void SetDeploymentStatusMessage(const Aws::String& value) { m_deploymentStatusMessage = value; }
150 
151     /**
152      * <p>May contain additional feedback on the status of an API deployment.</p>
153      */
SetDeploymentStatusMessage(Aws::String && value)154     inline void SetDeploymentStatusMessage(Aws::String&& value) { m_deploymentStatusMessage = std::move(value); }
155 
156     /**
157      * <p>May contain additional feedback on the status of an API deployment.</p>
158      */
SetDeploymentStatusMessage(const char * value)159     inline void SetDeploymentStatusMessage(const char* value) { m_deploymentStatusMessage.assign(value); }
160 
161     /**
162      * <p>May contain additional feedback on the status of an API deployment.</p>
163      */
WithDeploymentStatusMessage(const Aws::String & value)164     inline UpdateDeploymentResult& WithDeploymentStatusMessage(const Aws::String& value) { SetDeploymentStatusMessage(value); return *this;}
165 
166     /**
167      * <p>May contain additional feedback on the status of an API deployment.</p>
168      */
WithDeploymentStatusMessage(Aws::String && value)169     inline UpdateDeploymentResult& WithDeploymentStatusMessage(Aws::String&& value) { SetDeploymentStatusMessage(std::move(value)); return *this;}
170 
171     /**
172      * <p>May contain additional feedback on the status of an API deployment.</p>
173      */
WithDeploymentStatusMessage(const char * value)174     inline UpdateDeploymentResult& WithDeploymentStatusMessage(const char* value) { SetDeploymentStatusMessage(value); return *this;}
175 
176 
177     /**
178      * <p>The description for the deployment.</p>
179      */
GetDescription()180     inline const Aws::String& GetDescription() const{ return m_description; }
181 
182     /**
183      * <p>The description for the deployment.</p>
184      */
SetDescription(const Aws::String & value)185     inline void SetDescription(const Aws::String& value) { m_description = value; }
186 
187     /**
188      * <p>The description for the deployment.</p>
189      */
SetDescription(Aws::String && value)190     inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
191 
192     /**
193      * <p>The description for the deployment.</p>
194      */
SetDescription(const char * value)195     inline void SetDescription(const char* value) { m_description.assign(value); }
196 
197     /**
198      * <p>The description for the deployment.</p>
199      */
WithDescription(const Aws::String & value)200     inline UpdateDeploymentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
201 
202     /**
203      * <p>The description for the deployment.</p>
204      */
WithDescription(Aws::String && value)205     inline UpdateDeploymentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
206 
207     /**
208      * <p>The description for the deployment.</p>
209      */
WithDescription(const char * value)210     inline UpdateDeploymentResult& WithDescription(const char* value) { SetDescription(value); return *this;}
211 
212   private:
213 
214     bool m_autoDeployed;
215 
216     Aws::Utils::DateTime m_createdDate;
217 
218     Aws::String m_deploymentId;
219 
220     DeploymentStatus m_deploymentStatus;
221 
222     Aws::String m_deploymentStatusMessage;
223 
224     Aws::String m_description;
225   };
226 
227 } // namespace Model
228 } // namespace ApiGatewayV2
229 } // namespace Aws
230