AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
DescribeContainerAssociationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/crt/cbor/Cbor.h>
12#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
13#include <aws/network-firewall/model/ContainerAssociationStatus.h>
14#include <aws/network-firewall/model/ContainerMonitoringConfiguration.h>
15#include <aws/network-firewall/model/ContainerMonitoringType.h>
16#include <aws/network-firewall/model/Tag.h>
17
18#include <utility>
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Cbor {
25class CborValue;
26} // namespace Cbor
27} // namespace Utils
28namespace NetworkFirewall {
29namespace Model {
31 public:
32 AWS_NETWORKFIREWALL_API DescribeContainerAssociationResult() = default;
36
38
41 inline const Aws::String& GetContainerAssociationName() const { return m_containerAssociationName; }
42 template <typename ContainerAssociationNameT = Aws::String>
43 void SetContainerAssociationName(ContainerAssociationNameT&& value) {
44 m_containerAssociationNameHasBeenSet = true;
45 m_containerAssociationName = std::forward<ContainerAssociationNameT>(value);
46 }
47 template <typename ContainerAssociationNameT = Aws::String>
49 SetContainerAssociationName(std::forward<ContainerAssociationNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetContainerAssociationArn() const { return m_containerAssociationArn; }
59 template <typename ContainerAssociationArnT = Aws::String>
60 void SetContainerAssociationArn(ContainerAssociationArnT&& value) {
61 m_containerAssociationArnHasBeenSet = true;
62 m_containerAssociationArn = std::forward<ContainerAssociationArnT>(value);
63 }
64 template <typename ContainerAssociationArnT = Aws::String>
66 SetContainerAssociationArn(std::forward<ContainerAssociationArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
94 inline ContainerMonitoringType GetType() const { return m_type; }
95 inline void SetType(ContainerMonitoringType value) {
96 m_typeHasBeenSet = true;
97 m_type = value;
98 }
100 SetType(value);
101 return *this;
102 }
104
106
110 return m_containerMonitoringConfigurations;
111 }
112 template <typename ContainerMonitoringConfigurationsT = Aws::Vector<ContainerMonitoringConfiguration>>
113 void SetContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT&& value) {
114 m_containerMonitoringConfigurationsHasBeenSet = true;
115 m_containerMonitoringConfigurations = std::forward<ContainerMonitoringConfigurationsT>(value);
116 }
117 template <typename ContainerMonitoringConfigurationsT = Aws::Vector<ContainerMonitoringConfiguration>>
119 SetContainerMonitoringConfigurations(std::forward<ContainerMonitoringConfigurationsT>(value));
120 return *this;
121 }
122 template <typename ContainerMonitoringConfigurationsT = ContainerMonitoringConfiguration>
124 m_containerMonitoringConfigurationsHasBeenSet = true;
125 m_containerMonitoringConfigurations.emplace_back(std::forward<ContainerMonitoringConfigurationsT>(value));
126 return *this;
127 }
129
131
134 inline ContainerAssociationStatus GetStatus() const { return m_status; }
136 m_statusHasBeenSet = true;
137 m_status = value;
138 }
140 SetStatus(value);
141 return *this;
142 }
144
146
149 inline int64_t GetResolvedCidrCount() const { return m_resolvedCidrCount; }
150 inline void SetResolvedCidrCount(int64_t value) {
151 m_resolvedCidrCountHasBeenSet = true;
152 m_resolvedCidrCount = value;
153 }
156 return *this;
157 }
159
161
165 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
166 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
167 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
168 m_lastUpdatedTimeHasBeenSet = true;
169 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
170 }
171 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
173 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
183 template <typename TagsT = Aws::Vector<Tag>>
184 void SetTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags = std::forward<TagsT>(value);
187 }
188 template <typename TagsT = Aws::Vector<Tag>>
190 SetTags(std::forward<TagsT>(value));
191 return *this;
192 }
193 template <typename TagsT = Tag>
195 m_tagsHasBeenSet = true;
196 m_tags.emplace_back(std::forward<TagsT>(value));
197 return *this;
198 }
200
202
213 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
214 template <typename UpdateTokenT = Aws::String>
215 void SetUpdateToken(UpdateTokenT&& value) {
216 m_updateTokenHasBeenSet = true;
217 m_updateToken = std::forward<UpdateTokenT>(value);
218 }
219 template <typename UpdateTokenT = Aws::String>
221 SetUpdateToken(std::forward<UpdateTokenT>(value));
222 return *this;
223 }
225
227
228 inline const Aws::String& GetRequestId() const { return m_requestId; }
229 template <typename RequestIdT = Aws::String>
230 void SetRequestId(RequestIdT&& value) {
231 m_requestIdHasBeenSet = true;
232 m_requestId = std::forward<RequestIdT>(value);
233 }
234 template <typename RequestIdT = Aws::String>
236 SetRequestId(std::forward<RequestIdT>(value));
237 return *this;
238 }
240 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
241
242 private:
243 Aws::String m_containerAssociationName;
244
245 Aws::String m_containerAssociationArn;
246
247 Aws::String m_description;
248
250
251 Aws::Vector<ContainerMonitoringConfiguration> m_containerMonitoringConfigurations;
252
254
255 int64_t m_resolvedCidrCount{0};
256
257 Aws::Utils::DateTime m_lastUpdatedTime{};
258
259 Aws::Vector<Tag> m_tags;
260
261 Aws::String m_updateToken;
262
263 Aws::String m_requestId;
264 Aws::Http::HttpResponseCode m_HttpResponseCode;
265 bool m_containerAssociationNameHasBeenSet = false;
266 bool m_containerAssociationArnHasBeenSet = false;
267 bool m_descriptionHasBeenSet = false;
268 bool m_typeHasBeenSet = false;
269 bool m_containerMonitoringConfigurationsHasBeenSet = false;
270 bool m_statusHasBeenSet = false;
271 bool m_resolvedCidrCountHasBeenSet = false;
272 bool m_lastUpdatedTimeHasBeenSet = false;
273 bool m_tagsHasBeenSet = false;
274 bool m_updateTokenHasBeenSet = false;
275 bool m_requestIdHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace NetworkFirewall
280} // namespace Aws
DescribeContainerAssociationResult & WithRequestId(RequestIdT &&value)
DescribeContainerAssociationResult & AddContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
DescribeContainerAssociationResult & WithContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
DescribeContainerAssociationResult & WithDescription(DescriptionT &&value)
DescribeContainerAssociationResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
DescribeContainerAssociationResult & WithUpdateToken(UpdateTokenT &&value)
DescribeContainerAssociationResult & WithType(ContainerMonitoringType value)
AWS_NETWORKFIREWALL_API DescribeContainerAssociationResult()=default
void SetContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
DescribeContainerAssociationResult & WithStatus(ContainerAssociationStatus value)
DescribeContainerAssociationResult & WithContainerAssociationArn(ContainerAssociationArnT &&value)
DescribeContainerAssociationResult & WithResolvedCidrCount(int64_t value)
AWS_NETWORKFIREWALL_API DescribeContainerAssociationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_NETWORKFIREWALL_API DescribeContainerAssociationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
DescribeContainerAssociationResult & WithContainerAssociationName(ContainerAssociationNameT &&value)
const Aws::Vector< ContainerMonitoringConfiguration > & GetContainerMonitoringConfigurations() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector