AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
DeploymentSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
10#include <aws/network-security-manager/model/EntityStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkSecurityManager {
22namespace Model {
23
30 public:
31 AWS_NETWORKSECURITYMANAGER_API DeploymentSummary() = default;
32 AWS_NETWORKSECURITYMANAGER_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKSECURITYMANAGER_API DeploymentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
41 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
42 template <typename DeploymentIdT = Aws::String>
43 void SetDeploymentId(DeploymentIdT&& value) {
44 m_deploymentIdHasBeenSet = true;
45 m_deploymentId = std::forward<DeploymentIdT>(value);
46 }
47 template <typename DeploymentIdT = Aws::String>
48 DeploymentSummary& WithDeploymentId(DeploymentIdT&& value) {
49 SetDeploymentId(std::forward<DeploymentIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDeploymentArn() const { return m_deploymentArn; }
59 inline bool DeploymentArnHasBeenSet() const { return m_deploymentArnHasBeenSet; }
60 template <typename DeploymentArnT = Aws::String>
61 void SetDeploymentArn(DeploymentArnT&& value) {
62 m_deploymentArnHasBeenSet = true;
63 m_deploymentArn = std::forward<DeploymentArnT>(value);
64 }
65 template <typename DeploymentArnT = Aws::String>
66 DeploymentSummary& WithDeploymentArn(DeploymentArnT&& value) {
67 SetDeploymentArn(std::forward<DeploymentArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
77 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
78 template <typename DeploymentNameT = Aws::String>
79 void SetDeploymentName(DeploymentNameT&& value) {
80 m_deploymentNameHasBeenSet = true;
81 m_deploymentName = std::forward<DeploymentNameT>(value);
82 }
83 template <typename DeploymentNameT = Aws::String>
84 DeploymentSummary& WithDeploymentName(DeploymentNameT&& value) {
85 SetDeploymentName(std::forward<DeploymentNameT>(value));
86 return *this;
87 }
89
91
96 inline EntityStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(EntityStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetVersion() const { return m_version; }
113 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
114 template <typename VersionT = Aws::String>
115 void SetVersion(VersionT&& value) {
116 m_versionHasBeenSet = true;
117 m_version = std::forward<VersionT>(value);
118 }
119 template <typename VersionT = Aws::String>
120 DeploymentSummary& WithVersion(VersionT&& value) {
121 SetVersion(std::forward<VersionT>(value));
122 return *this;
123 }
125
127
130 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
131 inline bool HasPublishedVersionHasBeenSet() const { return m_hasPublishedVersionHasBeenSet; }
132 inline void SetHasPublishedVersion(bool value) {
133 m_hasPublishedVersionHasBeenSet = true;
134 m_hasPublishedVersion = value;
135 }
138 return *this;
139 }
141
143
147 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
148 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
149 template <typename UpdatedAtT = Aws::Utils::DateTime>
150 void SetUpdatedAt(UpdatedAtT&& value) {
151 m_updatedAtHasBeenSet = true;
152 m_updatedAt = std::forward<UpdatedAtT>(value);
153 }
154 template <typename UpdatedAtT = Aws::Utils::DateTime>
155 DeploymentSummary& WithUpdatedAt(UpdatedAtT&& value) {
156 SetUpdatedAt(std::forward<UpdatedAtT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_deploymentId;
162
163 Aws::String m_deploymentArn;
164
165 Aws::String m_deploymentName;
166
168
169 Aws::String m_version;
170
171 bool m_hasPublishedVersion{false};
172
173 Aws::Utils::DateTime m_updatedAt{};
174 bool m_deploymentIdHasBeenSet = false;
175 bool m_deploymentArnHasBeenSet = false;
176 bool m_deploymentNameHasBeenSet = false;
177 bool m_statusHasBeenSet = false;
178 bool m_versionHasBeenSet = false;
179 bool m_hasPublishedVersionHasBeenSet = false;
180 bool m_updatedAtHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace NetworkSecurityManager
185} // namespace Aws
AWS_NETWORKSECURITYMANAGER_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue)
DeploymentSummary & WithDeploymentName(DeploymentNameT &&value)
DeploymentSummary & WithStatus(EntityStatus value)
DeploymentSummary & WithDeploymentId(DeploymentIdT &&value)
DeploymentSummary & WithVersion(VersionT &&value)
DeploymentSummary & WithDeploymentArn(DeploymentArnT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKSECURITYMANAGER_API DeploymentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_NETWORKSECURITYMANAGER_API DeploymentSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue