AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
GetDeploymentStatusResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/greengrass/Greengrass_EXPORTS.h>
11#include <aws/greengrass/model/DeploymentType.h>
12#include <aws/greengrass/model/ErrorDetail.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Greengrass {
26namespace Model {
28 public:
29 AWS_GREENGRASS_API GetDeploymentStatusResult() = default;
32
34
38 inline const Aws::String& GetDeploymentStatus() const { return m_deploymentStatus; }
39 template <typename DeploymentStatusT = Aws::String>
40 void SetDeploymentStatus(DeploymentStatusT&& value) {
41 m_deploymentStatusHasBeenSet = true;
42 m_deploymentStatus = std::forward<DeploymentStatusT>(value);
43 }
44 template <typename DeploymentStatusT = Aws::String>
45 GetDeploymentStatusResult& WithDeploymentStatus(DeploymentStatusT&& value) {
46 SetDeploymentStatus(std::forward<DeploymentStatusT>(value));
47 return *this;
48 }
50
52
55 inline DeploymentType GetDeploymentType() const { return m_deploymentType; }
56 inline void SetDeploymentType(DeploymentType value) {
57 m_deploymentTypeHasBeenSet = true;
58 m_deploymentType = value;
59 }
61 SetDeploymentType(value);
62 return *this;
63 }
65
67
70 inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const { return m_errorDetails; }
71 template <typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
72 void SetErrorDetails(ErrorDetailsT&& value) {
73 m_errorDetailsHasBeenSet = true;
74 m_errorDetails = std::forward<ErrorDetailsT>(value);
75 }
76 template <typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
78 SetErrorDetails(std::forward<ErrorDetailsT>(value));
79 return *this;
80 }
81 template <typename ErrorDetailsT = ErrorDetail>
83 m_errorDetailsHasBeenSet = true;
84 m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
94 template <typename ErrorMessageT = Aws::String>
95 void SetErrorMessage(ErrorMessageT&& value) {
96 m_errorMessageHasBeenSet = true;
97 m_errorMessage = std::forward<ErrorMessageT>(value);
98 }
99 template <typename ErrorMessageT = Aws::String>
101 SetErrorMessage(std::forward<ErrorMessageT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
112 template <typename UpdatedAtT = Aws::String>
113 void SetUpdatedAt(UpdatedAtT&& value) {
114 m_updatedAtHasBeenSet = true;
115 m_updatedAt = std::forward<UpdatedAtT>(value);
116 }
117 template <typename UpdatedAtT = Aws::String>
119 SetUpdatedAt(std::forward<UpdatedAtT>(value));
120 return *this;
121 }
123
125
126 inline const Aws::String& GetRequestId() const { return m_requestId; }
127 template <typename RequestIdT = Aws::String>
128 void SetRequestId(RequestIdT&& value) {
129 m_requestIdHasBeenSet = true;
130 m_requestId = std::forward<RequestIdT>(value);
131 }
132 template <typename RequestIdT = Aws::String>
134 SetRequestId(std::forward<RequestIdT>(value));
135 return *this;
136 }
138 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
139
140 private:
141 Aws::String m_deploymentStatus;
142
143 DeploymentType m_deploymentType{DeploymentType::NOT_SET};
144
145 Aws::Vector<ErrorDetail> m_errorDetails;
146
147 Aws::String m_errorMessage;
148
149 Aws::String m_updatedAt;
150
151 Aws::String m_requestId;
152 Aws::Http::HttpResponseCode m_HttpResponseCode;
153 bool m_deploymentStatusHasBeenSet = false;
154 bool m_deploymentTypeHasBeenSet = false;
155 bool m_errorDetailsHasBeenSet = false;
156 bool m_errorMessageHasBeenSet = false;
157 bool m_updatedAtHasBeenSet = false;
158 bool m_requestIdHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace Greengrass
163} // 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