AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
GetBulkDeploymentStatusResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/greengrass/Greengrass_EXPORTS.h>
12#include <aws/greengrass/model/BulkDeploymentMetrics.h>
13#include <aws/greengrass/model/BulkDeploymentStatus.h>
14#include <aws/greengrass/model/ErrorDetail.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Greengrass {
28namespace Model {
30 public:
31 AWS_GREENGRASS_API GetBulkDeploymentStatusResult() = default;
34
36
39 inline const BulkDeploymentMetrics& GetBulkDeploymentMetrics() const { return m_bulkDeploymentMetrics; }
40 template <typename BulkDeploymentMetricsT = BulkDeploymentMetrics>
41 void SetBulkDeploymentMetrics(BulkDeploymentMetricsT&& value) {
42 m_bulkDeploymentMetricsHasBeenSet = true;
43 m_bulkDeploymentMetrics = std::forward<BulkDeploymentMetricsT>(value);
44 }
45 template <typename BulkDeploymentMetricsT = BulkDeploymentMetrics>
47 SetBulkDeploymentMetrics(std::forward<BulkDeploymentMetricsT>(value));
48 return *this;
49 }
51
53
56 inline BulkDeploymentStatus GetBulkDeploymentStatus() const { return m_bulkDeploymentStatus; }
58 m_bulkDeploymentStatusHasBeenSet = true;
59 m_bulkDeploymentStatus = value;
60 }
63 return *this;
64 }
66
68
71 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
72 template <typename CreatedAtT = Aws::String>
73 void SetCreatedAt(CreatedAtT&& value) {
74 m_createdAtHasBeenSet = true;
75 m_createdAt = std::forward<CreatedAtT>(value);
76 }
77 template <typename CreatedAtT = Aws::String>
79 SetCreatedAt(std::forward<CreatedAtT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const { return m_errorDetails; }
89 template <typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
90 void SetErrorDetails(ErrorDetailsT&& value) {
91 m_errorDetailsHasBeenSet = true;
92 m_errorDetails = std::forward<ErrorDetailsT>(value);
93 }
94 template <typename ErrorDetailsT = Aws::Vector<ErrorDetail>>
96 SetErrorDetails(std::forward<ErrorDetailsT>(value));
97 return *this;
98 }
99 template <typename ErrorDetailsT = ErrorDetail>
101 m_errorDetailsHasBeenSet = true;
102 m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
112 template <typename ErrorMessageT = Aws::String>
113 void SetErrorMessage(ErrorMessageT&& value) {
114 m_errorMessageHasBeenSet = true;
115 m_errorMessage = std::forward<ErrorMessageT>(value);
116 }
117 template <typename ErrorMessageT = Aws::String>
119 SetErrorMessage(std::forward<ErrorMessageT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags = std::forward<TagsT>(value);
133 }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 SetTags(std::forward<TagsT>(value));
137 return *this;
138 }
139 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 GetBulkDeploymentStatusResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
143 return *this;
144 }
146
148
149 inline const Aws::String& GetRequestId() const { return m_requestId; }
150 template <typename RequestIdT = Aws::String>
151 void SetRequestId(RequestIdT&& value) {
152 m_requestIdHasBeenSet = true;
153 m_requestId = std::forward<RequestIdT>(value);
154 }
155 template <typename RequestIdT = Aws::String>
157 SetRequestId(std::forward<RequestIdT>(value));
158 return *this;
159 }
161 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
162
163 private:
164 BulkDeploymentMetrics m_bulkDeploymentMetrics;
165
167
168 Aws::String m_createdAt;
169
170 Aws::Vector<ErrorDetail> m_errorDetails;
171
172 Aws::String m_errorMessage;
173
175
176 Aws::String m_requestId;
177 Aws::Http::HttpResponseCode m_HttpResponseCode;
178 bool m_bulkDeploymentMetricsHasBeenSet = false;
179 bool m_bulkDeploymentStatusHasBeenSet = false;
180 bool m_createdAtHasBeenSet = false;
181 bool m_errorDetailsHasBeenSet = false;
182 bool m_errorMessageHasBeenSet = false;
183 bool m_tagsHasBeenSet = false;
184 bool m_requestIdHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace Greengrass
189} // namespace Aws
GetBulkDeploymentStatusResult & WithBulkDeploymentStatus(BulkDeploymentStatus value)
GetBulkDeploymentStatusResult & AddErrorDetails(ErrorDetailsT &&value)
GetBulkDeploymentStatusResult & WithErrorMessage(ErrorMessageT &&value)
GetBulkDeploymentStatusResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetBulkDeploymentStatusResult & WithRequestId(RequestIdT &&value)
GetBulkDeploymentStatusResult & WithTags(TagsT &&value)
GetBulkDeploymentStatusResult & WithBulkDeploymentMetrics(BulkDeploymentMetricsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetBulkDeploymentStatusResult & WithErrorDetails(ErrorDetailsT &&value)
GetBulkDeploymentStatusResult & WithCreatedAt(CreatedAtT &&value)
AWS_GREENGRASS_API GetBulkDeploymentStatusResult()=default
AWS_GREENGRASS_API GetBulkDeploymentStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GREENGRASS_API GetBulkDeploymentStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue