AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
Deployment.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/DeploymentStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApiGatewayV2 {
22namespace Model {
23
32 public:
33 AWS_APIGATEWAYV2_API Deployment() = default;
34 AWS_APIGATEWAYV2_API Deployment(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APIGATEWAYV2_API Deployment& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline bool GetAutoDeployed() const { return m_autoDeployed; }
43 inline bool AutoDeployedHasBeenSet() const { return m_autoDeployedHasBeenSet; }
44 inline void SetAutoDeployed(bool value) {
45 m_autoDeployedHasBeenSet = true;
46 m_autoDeployed = value;
47 }
48 inline Deployment& WithAutoDeployed(bool value) {
49 SetAutoDeployed(value);
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
59 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
60 template <typename CreatedDateT = Aws::Utils::DateTime>
61 void SetCreatedDate(CreatedDateT&& value) {
62 m_createdDateHasBeenSet = true;
63 m_createdDate = std::forward<CreatedDateT>(value);
64 }
65 template <typename CreatedDateT = Aws::Utils::DateTime>
66 Deployment& WithCreatedDate(CreatedDateT&& value) {
67 SetCreatedDate(std::forward<CreatedDateT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
77 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
78 template <typename DeploymentIdT = Aws::String>
79 void SetDeploymentId(DeploymentIdT&& value) {
80 m_deploymentIdHasBeenSet = true;
81 m_deploymentId = std::forward<DeploymentIdT>(value);
82 }
83 template <typename DeploymentIdT = Aws::String>
84 Deployment& WithDeploymentId(DeploymentIdT&& value) {
85 SetDeploymentId(std::forward<DeploymentIdT>(value));
86 return *this;
87 }
89
91
94 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
95 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
97 m_deploymentStatusHasBeenSet = true;
98 m_deploymentStatus = value;
99 }
101 SetDeploymentStatus(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
111 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
112 template <typename DeploymentStatusMessageT = Aws::String>
113 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
114 m_deploymentStatusMessageHasBeenSet = true;
115 m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value);
116 }
117 template <typename DeploymentStatusMessageT = Aws::String>
118 Deployment& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
119 SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetDescription() const { return m_description; }
129 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
130 template <typename DescriptionT = Aws::String>
131 void SetDescription(DescriptionT&& value) {
132 m_descriptionHasBeenSet = true;
133 m_description = std::forward<DescriptionT>(value);
134 }
135 template <typename DescriptionT = Aws::String>
136 Deployment& WithDescription(DescriptionT&& value) {
137 SetDescription(std::forward<DescriptionT>(value));
138 return *this;
139 }
141 private:
142 bool m_autoDeployed{false};
143
144 Aws::Utils::DateTime m_createdDate{};
145
146 Aws::String m_deploymentId;
147
149
150 Aws::String m_deploymentStatusMessage;
151
152 Aws::String m_description;
153 bool m_autoDeployedHasBeenSet = false;
154 bool m_createdDateHasBeenSet = false;
155 bool m_deploymentIdHasBeenSet = false;
156 bool m_deploymentStatusHasBeenSet = false;
157 bool m_deploymentStatusMessageHasBeenSet = false;
158 bool m_descriptionHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace ApiGatewayV2
163} // namespace Aws
void SetCreatedDate(CreatedDateT &&value)
Definition Deployment.h:61
Deployment & WithAutoDeployed(bool value)
Definition Deployment.h:48
Deployment & WithDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:100
void SetDescription(DescriptionT &&value)
Definition Deployment.h:131
const Aws::String & GetDescription() const
Definition Deployment.h:128
const Aws::String & GetDeploymentStatusMessage() const
Definition Deployment.h:110
AWS_APIGATEWAYV2_API Deployment(Aws::Utils::Json::JsonView jsonValue)
DeploymentStatus GetDeploymentStatus() const
Definition Deployment.h:94
Deployment & WithCreatedDate(CreatedDateT &&value)
Definition Deployment.h:66
void SetDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:79
Deployment & WithDeploymentId(DeploymentIdT &&value)
Definition Deployment.h:84
void SetDeploymentStatus(DeploymentStatus value)
Definition Deployment.h:96
const Aws::String & GetDeploymentId() const
Definition Deployment.h:76
AWS_APIGATEWAYV2_API Deployment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedDate() const
Definition Deployment.h:58
Deployment & WithDescription(DescriptionT &&value)
Definition Deployment.h:136
AWS_APIGATEWAYV2_API Deployment()=default
Deployment & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Definition Deployment.h:118
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Definition Deployment.h:113
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue