AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DeploymentResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker-edge/SagemakerEdgeManager_EXPORTS.h>
11#include <aws/sagemaker-edge/model/DeploymentModel.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SagemakerEdgeManager {
23namespace Model {
24
32 public:
33 AWS_SAGEMAKEREDGEMANAGER_API DeploymentResult() = default;
34 AWS_SAGEMAKEREDGEMANAGER_API DeploymentResult(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKEREDGEMANAGER_API DeploymentResult& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
43 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
44 template <typename DeploymentNameT = Aws::String>
45 void SetDeploymentName(DeploymentNameT&& value) {
46 m_deploymentNameHasBeenSet = true;
47 m_deploymentName = std::forward<DeploymentNameT>(value);
48 }
49 template <typename DeploymentNameT = Aws::String>
50 DeploymentResult& WithDeploymentName(DeploymentNameT&& value) {
51 SetDeploymentName(std::forward<DeploymentNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDeploymentStatus() const { return m_deploymentStatus; }
61 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
62 template <typename DeploymentStatusT = Aws::String>
63 void SetDeploymentStatus(DeploymentStatusT&& value) {
64 m_deploymentStatusHasBeenSet = true;
65 m_deploymentStatus = std::forward<DeploymentStatusT>(value);
66 }
67 template <typename DeploymentStatusT = Aws::String>
68 DeploymentResult& WithDeploymentStatus(DeploymentStatusT&& value) {
69 SetDeploymentStatus(std::forward<DeploymentStatusT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
79 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
80 template <typename DeploymentStatusMessageT = Aws::String>
81 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
82 m_deploymentStatusMessageHasBeenSet = true;
83 m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value);
84 }
85 template <typename DeploymentStatusMessageT = Aws::String>
86 DeploymentResult& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
87 SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetDeploymentStartTime() const { return m_deploymentStartTime; }
97 inline bool DeploymentStartTimeHasBeenSet() const { return m_deploymentStartTimeHasBeenSet; }
98 template <typename DeploymentStartTimeT = Aws::Utils::DateTime>
99 void SetDeploymentStartTime(DeploymentStartTimeT&& value) {
100 m_deploymentStartTimeHasBeenSet = true;
101 m_deploymentStartTime = std::forward<DeploymentStartTimeT>(value);
102 }
103 template <typename DeploymentStartTimeT = Aws::Utils::DateTime>
104 DeploymentResult& WithDeploymentStartTime(DeploymentStartTimeT&& value) {
105 SetDeploymentStartTime(std::forward<DeploymentStartTimeT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Utils::DateTime& GetDeploymentEndTime() const { return m_deploymentEndTime; }
116 inline bool DeploymentEndTimeHasBeenSet() const { return m_deploymentEndTimeHasBeenSet; }
117 template <typename DeploymentEndTimeT = Aws::Utils::DateTime>
118 void SetDeploymentEndTime(DeploymentEndTimeT&& value) {
119 m_deploymentEndTimeHasBeenSet = true;
120 m_deploymentEndTime = std::forward<DeploymentEndTimeT>(value);
121 }
122 template <typename DeploymentEndTimeT = Aws::Utils::DateTime>
123 DeploymentResult& WithDeploymentEndTime(DeploymentEndTimeT&& value) {
124 SetDeploymentEndTime(std::forward<DeploymentEndTimeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<DeploymentModel>& GetDeploymentModels() const { return m_deploymentModels; }
134 inline bool DeploymentModelsHasBeenSet() const { return m_deploymentModelsHasBeenSet; }
135 template <typename DeploymentModelsT = Aws::Vector<DeploymentModel>>
136 void SetDeploymentModels(DeploymentModelsT&& value) {
137 m_deploymentModelsHasBeenSet = true;
138 m_deploymentModels = std::forward<DeploymentModelsT>(value);
139 }
140 template <typename DeploymentModelsT = Aws::Vector<DeploymentModel>>
141 DeploymentResult& WithDeploymentModels(DeploymentModelsT&& value) {
142 SetDeploymentModels(std::forward<DeploymentModelsT>(value));
143 return *this;
144 }
145 template <typename DeploymentModelsT = DeploymentModel>
146 DeploymentResult& AddDeploymentModels(DeploymentModelsT&& value) {
147 m_deploymentModelsHasBeenSet = true;
148 m_deploymentModels.emplace_back(std::forward<DeploymentModelsT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_deploymentName;
154
155 Aws::String m_deploymentStatus;
156
157 Aws::String m_deploymentStatusMessage;
158
159 Aws::Utils::DateTime m_deploymentStartTime{};
160
161 Aws::Utils::DateTime m_deploymentEndTime{};
162
163 Aws::Vector<DeploymentModel> m_deploymentModels;
164 bool m_deploymentNameHasBeenSet = false;
165 bool m_deploymentStatusHasBeenSet = false;
166 bool m_deploymentStatusMessageHasBeenSet = false;
167 bool m_deploymentStartTimeHasBeenSet = false;
168 bool m_deploymentEndTimeHasBeenSet = false;
169 bool m_deploymentModelsHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace SagemakerEdgeManager
174} // namespace Aws
DeploymentResult & WithDeploymentStatus(DeploymentStatusT &&value)
DeploymentResult & AddDeploymentModels(DeploymentModelsT &&value)
DeploymentResult & WithDeploymentModels(DeploymentModelsT &&value)
AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKEREDGEMANAGER_API DeploymentResult()=default
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
void SetDeploymentStartTime(DeploymentStartTimeT &&value)
AWS_SAGEMAKEREDGEMANAGER_API DeploymentResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DeploymentModel > & GetDeploymentModels() const
void SetDeploymentModels(DeploymentModelsT &&value)
DeploymentResult & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
void SetDeploymentEndTime(DeploymentEndTimeT &&value)
const Aws::Utils::DateTime & GetDeploymentEndTime() const
void SetDeploymentStatus(DeploymentStatusT &&value)
AWS_SAGEMAKEREDGEMANAGER_API DeploymentResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetDeploymentStartTime() const
DeploymentResult & WithDeploymentEndTime(DeploymentEndTimeT &&value)
DeploymentResult & WithDeploymentStartTime(DeploymentStartTimeT &&value)
DeploymentResult & WithDeploymentName(DeploymentNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue