AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
UpdateContainerAssociationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/network-firewall/NetworkFirewallRequest.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/ContainerMonitoringConfiguration.h>
12#include <aws/network-firewall/model/ContainerMonitoringType.h>
13#include <aws/network-firewall/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace NetworkFirewall {
19namespace Model {
20
24 public:
25 AWS_NETWORKFIREWALL_API UpdateContainerAssociationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateContainerAssociation"; }
32
33 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
34
35 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetContainerAssociationName() const { return m_containerAssociationName; }
43 inline bool ContainerAssociationNameHasBeenSet() const { return m_containerAssociationNameHasBeenSet; }
44 template <typename ContainerAssociationNameT = Aws::String>
45 void SetContainerAssociationName(ContainerAssociationNameT&& value) {
46 m_containerAssociationNameHasBeenSet = true;
47 m_containerAssociationName = std::forward<ContainerAssociationNameT>(value);
48 }
49 template <typename ContainerAssociationNameT = Aws::String>
51 SetContainerAssociationName(std::forward<ContainerAssociationNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetContainerAssociationArn() const { return m_containerAssociationArn; }
62 inline bool ContainerAssociationArnHasBeenSet() const { return m_containerAssociationArnHasBeenSet; }
63 template <typename ContainerAssociationArnT = Aws::String>
64 void SetContainerAssociationArn(ContainerAssociationArnT&& value) {
65 m_containerAssociationArnHasBeenSet = true;
66 m_containerAssociationArn = std::forward<ContainerAssociationArnT>(value);
67 }
68 template <typename ContainerAssociationArnT = Aws::String>
70 SetContainerAssociationArn(std::forward<ContainerAssociationArnT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
102 inline ContainerMonitoringType GetType() const { return m_type; }
103 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
104 inline void SetType(ContainerMonitoringType value) {
105 m_typeHasBeenSet = true;
106 m_type = value;
107 }
109 SetType(value);
110 return *this;
111 }
113
115
121 return m_containerMonitoringConfigurations;
122 }
123 inline bool ContainerMonitoringConfigurationsHasBeenSet() const { return m_containerMonitoringConfigurationsHasBeenSet; }
124 template <typename ContainerMonitoringConfigurationsT = Aws::Vector<ContainerMonitoringConfiguration>>
125 void SetContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT&& value) {
126 m_containerMonitoringConfigurationsHasBeenSet = true;
127 m_containerMonitoringConfigurations = std::forward<ContainerMonitoringConfigurationsT>(value);
128 }
129 template <typename ContainerMonitoringConfigurationsT = Aws::Vector<ContainerMonitoringConfiguration>>
131 SetContainerMonitoringConfigurations(std::forward<ContainerMonitoringConfigurationsT>(value));
132 return *this;
133 }
134 template <typename ContainerMonitoringConfigurationsT = ContainerMonitoringConfiguration>
135 UpdateContainerAssociationRequest& AddContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT&& value) {
136 m_containerMonitoringConfigurationsHasBeenSet = true;
137 m_containerMonitoringConfigurations.emplace_back(std::forward<ContainerMonitoringConfigurationsT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template <typename TagsT = Aws::Vector<Tag>>
149 void SetTags(TagsT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags = std::forward<TagsT>(value);
152 }
153 template <typename TagsT = Aws::Vector<Tag>>
155 SetTags(std::forward<TagsT>(value));
156 return *this;
157 }
158 template <typename TagsT = Tag>
160 m_tagsHasBeenSet = true;
161 m_tags.emplace_back(std::forward<TagsT>(value));
162 return *this;
163 }
165
167
178 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
179 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
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 private:
192 Aws::String m_containerAssociationName;
193
194 Aws::String m_containerAssociationArn;
195
196 Aws::String m_description;
197
199
200 Aws::Vector<ContainerMonitoringConfiguration> m_containerMonitoringConfigurations;
201
202 Aws::Vector<Tag> m_tags;
203
204 Aws::String m_updateToken;
205 bool m_containerAssociationNameHasBeenSet = false;
206 bool m_containerAssociationArnHasBeenSet = false;
207 bool m_descriptionHasBeenSet = false;
208 bool m_typeHasBeenSet = false;
209 bool m_containerMonitoringConfigurationsHasBeenSet = false;
210 bool m_tagsHasBeenSet = false;
211 bool m_updateTokenHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace NetworkFirewall
216} // namespace Aws
void SetContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
UpdateContainerAssociationRequest & WithContainerAssociationArn(ContainerAssociationArnT &&value)
AWS_NETWORKFIREWALL_API UpdateContainerAssociationRequest()=default
UpdateContainerAssociationRequest & WithUpdateToken(UpdateTokenT &&value)
const Aws::Vector< ContainerMonitoringConfiguration > & GetContainerMonitoringConfigurations() const
UpdateContainerAssociationRequest & AddContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
UpdateContainerAssociationRequest & WithContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
UpdateContainerAssociationRequest & WithDescription(DescriptionT &&value)
UpdateContainerAssociationRequest & WithType(ContainerMonitoringType value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateContainerAssociationRequest & WithContainerAssociationName(ContainerAssociationNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector