AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
GetDeploymentStatusResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrass/Greengrass_EXPORTS.h>
10#include <aws/greengrass/model/DeploymentType.h>
11#include <aws/greengrass/model/ErrorDetail.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 Greengrass {
25namespace Model {
27 public:
28 AWS_GREENGRASS_API GetDeploymentStatusResult() = default;
31
33
37 inline const Aws::String& GetDeploymentStatus() const { return m_deploymentStatus; }
38 template <typename DeploymentStatusT = Aws::String>
39 void SetDeploymentStatus(DeploymentStatusT&& value) {
40 m_deploymentStatusHasBeenSet = true;
41 m_deploymentStatus = std::forward<DeploymentStatusT>(value);
42 }
43 template <typename DeploymentStatusT = Aws::String>
44 GetDeploymentStatusResult& WithDeploymentStatus(DeploymentStatusT&& value) {
45 SetDeploymentStatus(std::forward<DeploymentStatusT>(value));
46 return *this;
47 }
49
51
54 inline DeploymentType GetDeploymentType() const { return m_deploymentType; }
55 inline void SetDeploymentType(DeploymentType value) {
56 m_deploymentTypeHasBeenSet = true;
57 m_deploymentType = value;
58 }
60 SetDeploymentType(value);
61 return *this;
62 }
64
66
69 inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const { return m_errorDetails; }
70 template <typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
71 void SetErrorDetails(ErrorDetailsT&& value) {
72 m_errorDetailsHasBeenSet = true;
73 m_errorDetails = std::forward<ErrorDetailsT>(value);
74 }
75 template <typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
77 SetErrorDetails(std::forward<ErrorDetailsT>(value));
78 return *this;
79 }
80 template <typename ErrorDetailsT = ErrorDetail>
82 m_errorDetailsHasBeenSet = true;
83 m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
93 template <typename ErrorMessageT = Aws::String>
94 void SetErrorMessage(ErrorMessageT&& value) {
95 m_errorMessageHasBeenSet = true;
96 m_errorMessage = std::forward<ErrorMessageT>(value);
97 }
98 template <typename ErrorMessageT = Aws::String>
100 SetErrorMessage(std::forward<ErrorMessageT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
111 template <typename UpdatedAtT = Aws::String>
112 void SetUpdatedAt(UpdatedAtT&& value) {
113 m_updatedAtHasBeenSet = true;
114 m_updatedAt = std::forward<UpdatedAtT>(value);
115 }
116 template <typename UpdatedAtT = Aws::String>
118 SetUpdatedAt(std::forward<UpdatedAtT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::String& GetRequestId() const { return m_requestId; }
126 template <typename RequestIdT = Aws::String>
127 void SetRequestId(RequestIdT&& value) {
128 m_requestIdHasBeenSet = true;
129 m_requestId = std::forward<RequestIdT>(value);
130 }
131 template <typename RequestIdT = Aws::String>
133 SetRequestId(std::forward<RequestIdT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_deploymentStatus;
139
140 DeploymentType m_deploymentType{DeploymentType::NOT_SET};
141
142 Aws::Vector<ErrorDetail> m_errorDetails;
143
144 Aws::String m_errorMessage;
145
146 Aws::String m_updatedAt;
147
148 Aws::String m_requestId;
149 bool m_deploymentStatusHasBeenSet = false;
150 bool m_deploymentTypeHasBeenSet = false;
151 bool m_errorDetailsHasBeenSet = false;
152 bool m_errorMessageHasBeenSet = false;
153 bool m_updatedAtHasBeenSet = false;
154 bool m_requestIdHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace Greengrass
159} // namespace Aws
GetDeploymentStatusResult & WithErrorDetails(ErrorDetailsT &&value)
GetDeploymentStatusResult & WithDeploymentType(DeploymentType value)
GetDeploymentStatusResult & WithDeploymentStatus(DeploymentStatusT &&value)
GetDeploymentStatusResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Vector< ErrorDetail > & GetErrorDetails() const
AWS_GREENGRASS_API GetDeploymentStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentStatusResult & WithRequestId(RequestIdT &&value)
AWS_GREENGRASS_API GetDeploymentStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentStatusResult & WithErrorMessage(ErrorMessageT &&value)
AWS_GREENGRASS_API GetDeploymentStatusResult()=default
GetDeploymentStatusResult & AddErrorDetails(ErrorDetailsT &&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