AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CreateContainerAssociationResult.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 CreateContainerAssociationResult() = 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 CreateContainerAssociationResult& WithContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT&& value) {
118 SetContainerMonitoringConfigurations(std::forward<ContainerMonitoringConfigurationsT>(value));
119 return *this;
120 }
121 template <typename ContainerMonitoringConfigurationsT = ContainerMonitoringConfiguration>
122 CreateContainerAssociationResult& AddContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT&& value) {
123 m_containerMonitoringConfigurationsHasBeenSet = true;
124 m_containerMonitoringConfigurations.emplace_back(std::forward<ContainerMonitoringConfigurationsT>(value));
125 return *this;
126 }
128
130
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 const Aws::Vector<Tag>& GetTags() const { return m_tags; }
150 template <typename TagsT = Aws::Vector<Tag>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Vector<Tag>>
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsT = Tag>
162 m_tagsHasBeenSet = true;
163 m_tags.emplace_back(std::forward<TagsT>(value));
164 return *this;
165 }
167
169
180 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
181 template <typename UpdateTokenT = Aws::String>
182 void SetUpdateToken(UpdateTokenT&& value) {
183 m_updateTokenHasBeenSet = true;
184 m_updateToken = std::forward<UpdateTokenT>(value);
185 }
186 template <typename UpdateTokenT = Aws::String>
188 SetUpdateToken(std::forward<UpdateTokenT>(value));
189 return *this;
190 }
192
194
195 inline const Aws::String& GetRequestId() const { return m_requestId; }
196 template <typename RequestIdT = Aws::String>
197 void SetRequestId(RequestIdT&& value) {
198 m_requestIdHasBeenSet = true;
199 m_requestId = std::forward<RequestIdT>(value);
200 }
201 template <typename RequestIdT = Aws::String>
203 SetRequestId(std::forward<RequestIdT>(value));
204 return *this;
205 }
207 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
208
209 private:
210 Aws::String m_containerAssociationName;
211
212 Aws::String m_containerAssociationArn;
213
214 Aws::String m_description;
215
217
218 Aws::Vector<ContainerMonitoringConfiguration> m_containerMonitoringConfigurations;
219
221
222 Aws::Vector<Tag> m_tags;
223
224 Aws::String m_updateToken;
225
226 Aws::String m_requestId;
227 Aws::Http::HttpResponseCode m_HttpResponseCode;
228 bool m_containerAssociationNameHasBeenSet = false;
229 bool m_containerAssociationArnHasBeenSet = false;
230 bool m_descriptionHasBeenSet = false;
231 bool m_typeHasBeenSet = false;
232 bool m_containerMonitoringConfigurationsHasBeenSet = false;
233 bool m_statusHasBeenSet = false;
234 bool m_tagsHasBeenSet = false;
235 bool m_updateTokenHasBeenSet = false;
236 bool m_requestIdHasBeenSet = false;
237};
238
239} // namespace Model
240} // namespace NetworkFirewall
241} // namespace Aws
AWS_NETWORKFIREWALL_API CreateContainerAssociationResult()=default
CreateContainerAssociationResult & WithRequestId(RequestIdT &&value)
CreateContainerAssociationResult & WithContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
CreateContainerAssociationResult & AddContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
AWS_NETWORKFIREWALL_API CreateContainerAssociationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
const Aws::Vector< ContainerMonitoringConfiguration > & GetContainerMonitoringConfigurations() const
void SetContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
CreateContainerAssociationResult & WithContainerAssociationName(ContainerAssociationNameT &&value)
AWS_NETWORKFIREWALL_API CreateContainerAssociationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
CreateContainerAssociationResult & WithUpdateToken(UpdateTokenT &&value)
CreateContainerAssociationResult & WithDescription(DescriptionT &&value)
CreateContainerAssociationResult & WithStatus(ContainerAssociationStatus value)
CreateContainerAssociationResult & WithType(ContainerMonitoringType value)
CreateContainerAssociationResult & WithContainerAssociationArn(ContainerAssociationArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector