AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
UpdateContainerAssociationResult.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/crt/cbor/Cbor.h>
11#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
12#include <aws/network-firewall/model/ContainerAssociationStatus.h>
13#include <aws/network-firewall/model/ContainerMonitoringConfiguration.h>
14#include <aws/network-firewall/model/ContainerMonitoringType.h>
15#include <aws/network-firewall/model/Tag.h>
16
17#include <utility>
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Cbor {
24class CborValue;
25} // namespace Cbor
26} // namespace Utils
27namespace NetworkFirewall {
28namespace Model {
30 public:
31 AWS_NETWORKFIREWALL_API UpdateContainerAssociationResult() = default;
35
37
40 inline const Aws::String& GetContainerAssociationName() const { return m_containerAssociationName; }
41 template <typename ContainerAssociationNameT = Aws::String>
42 void SetContainerAssociationName(ContainerAssociationNameT&& value) {
43 m_containerAssociationNameHasBeenSet = true;
44 m_containerAssociationName = std::forward<ContainerAssociationNameT>(value);
45 }
46 template <typename ContainerAssociationNameT = Aws::String>
48 SetContainerAssociationName(std::forward<ContainerAssociationNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetContainerAssociationArn() const { return m_containerAssociationArn; }
58 template <typename ContainerAssociationArnT = Aws::String>
59 void SetContainerAssociationArn(ContainerAssociationArnT&& value) {
60 m_containerAssociationArnHasBeenSet = true;
61 m_containerAssociationArn = std::forward<ContainerAssociationArnT>(value);
62 }
63 template <typename ContainerAssociationArnT = Aws::String>
65 SetContainerAssociationArn(std::forward<ContainerAssociationArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
93 inline ContainerMonitoringType GetType() const { return m_type; }
94 inline void SetType(ContainerMonitoringType value) {
95 m_typeHasBeenSet = true;
96 m_type = value;
97 }
99 SetType(value);
100 return *this;
101 }
103
105
109 return m_containerMonitoringConfigurations;
110 }
111 template <typename ContainerMonitoringConfigurationsT = Aws::Vector<ContainerMonitoringConfiguration>>
112 void SetContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT&& value) {
113 m_containerMonitoringConfigurationsHasBeenSet = true;
114 m_containerMonitoringConfigurations = std::forward<ContainerMonitoringConfigurationsT>(value);
115 }
116 template <typename ContainerMonitoringConfigurationsT = Aws::Vector<ContainerMonitoringConfiguration>>
117 UpdateContainerAssociationResult& WithContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT&& value) {
118 SetContainerMonitoringConfigurations(std::forward<ContainerMonitoringConfigurationsT>(value));
119 return *this;
120 }
121 template <typename ContainerMonitoringConfigurationsT = ContainerMonitoringConfiguration>
122 UpdateContainerAssociationResult& AddContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT&& value) {
123 m_containerMonitoringConfigurationsHasBeenSet = true;
124 m_containerMonitoringConfigurations.emplace_back(std::forward<ContainerMonitoringConfigurationsT>(value));
125 return *this;
126 }
128
130
133 inline ContainerAssociationStatus GetStatus() const { return m_status; }
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143
145
148 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
149 template <typename TagsT = Aws::Vector<Tag>>
150 void SetTags(TagsT&& value) {
151 m_tagsHasBeenSet = true;
152 m_tags = std::forward<TagsT>(value);
153 }
154 template <typename TagsT = Aws::Vector<Tag>>
156 SetTags(std::forward<TagsT>(value));
157 return *this;
158 }
159 template <typename TagsT = Tag>
161 m_tagsHasBeenSet = true;
162 m_tags.emplace_back(std::forward<TagsT>(value));
163 return *this;
164 }
166
168
179 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
180 template <typename UpdateTokenT = Aws::String>
181 void SetUpdateToken(UpdateTokenT&& value) {
182 m_updateTokenHasBeenSet = true;
183 m_updateToken = std::forward<UpdateTokenT>(value);
184 }
185 template <typename UpdateTokenT = Aws::String>
187 SetUpdateToken(std::forward<UpdateTokenT>(value));
188 return *this;
189 }
191
193
194 inline const Aws::String& GetRequestId() const { return m_requestId; }
195 template <typename RequestIdT = Aws::String>
196 void SetRequestId(RequestIdT&& value) {
197 m_requestIdHasBeenSet = true;
198 m_requestId = std::forward<RequestIdT>(value);
199 }
200 template <typename RequestIdT = Aws::String>
202 SetRequestId(std::forward<RequestIdT>(value));
203 return *this;
204 }
206 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
207
208 private:
209 Aws::String m_containerAssociationName;
210
211 Aws::String m_containerAssociationArn;
212
213 Aws::String m_description;
214
216
217 Aws::Vector<ContainerMonitoringConfiguration> m_containerMonitoringConfigurations;
218
220
221 Aws::Vector<Tag> m_tags;
222
223 Aws::String m_updateToken;
224
225 Aws::String m_requestId;
226 Aws::Http::HttpResponseCode m_HttpResponseCode;
227 bool m_containerAssociationNameHasBeenSet = false;
228 bool m_containerAssociationArnHasBeenSet = false;
229 bool m_descriptionHasBeenSet = false;
230 bool m_typeHasBeenSet = false;
231 bool m_containerMonitoringConfigurationsHasBeenSet = false;
232 bool m_statusHasBeenSet = false;
233 bool m_tagsHasBeenSet = false;
234 bool m_updateTokenHasBeenSet = false;
235 bool m_requestIdHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace NetworkFirewall
240} // namespace Aws
UpdateContainerAssociationResult & WithType(ContainerMonitoringType value)
AWS_NETWORKFIREWALL_API UpdateContainerAssociationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_NETWORKFIREWALL_API UpdateContainerAssociationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
UpdateContainerAssociationResult & WithContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
const Aws::Vector< ContainerMonitoringConfiguration > & GetContainerMonitoringConfigurations() const
UpdateContainerAssociationResult & WithStatus(ContainerAssociationStatus value)
UpdateContainerAssociationResult & WithRequestId(RequestIdT &&value)
UpdateContainerAssociationResult & WithContainerAssociationName(ContainerAssociationNameT &&value)
void SetContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
UpdateContainerAssociationResult & WithDescription(DescriptionT &&value)
UpdateContainerAssociationResult & AddContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
UpdateContainerAssociationResult & WithContainerAssociationArn(ContainerAssociationArnT &&value)
AWS_NETWORKFIREWALL_API UpdateContainerAssociationResult()=default
UpdateContainerAssociationResult & WithUpdateToken(UpdateTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector