AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CreateContainerAssociationRequest.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 CreateContainerAssociationRequest() = 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 "CreateContainerAssociation"; }
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
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
81 inline ContainerMonitoringType GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(ContainerMonitoringType value) {
84 m_typeHasBeenSet = true;
85 m_type = value;
86 }
88 SetType(value);
89 return *this;
90 }
92
94
100 return m_containerMonitoringConfigurations;
101 }
102 inline bool ContainerMonitoringConfigurationsHasBeenSet() const { return m_containerMonitoringConfigurationsHasBeenSet; }
103 template <typename ContainerMonitoringConfigurationsT = Aws::Vector<ContainerMonitoringConfiguration>>
104 void SetContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT&& value) {
105 m_containerMonitoringConfigurationsHasBeenSet = true;
106 m_containerMonitoringConfigurations = std::forward<ContainerMonitoringConfigurationsT>(value);
107 }
108 template <typename ContainerMonitoringConfigurationsT = Aws::Vector<ContainerMonitoringConfiguration>>
110 SetContainerMonitoringConfigurations(std::forward<ContainerMonitoringConfigurationsT>(value));
111 return *this;
112 }
113 template <typename ContainerMonitoringConfigurationsT = ContainerMonitoringConfiguration>
114 CreateContainerAssociationRequest& AddContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT&& value) {
115 m_containerMonitoringConfigurationsHasBeenSet = true;
116 m_containerMonitoringConfigurations.emplace_back(std::forward<ContainerMonitoringConfigurationsT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 template <typename TagsT = Aws::Vector<Tag>>
128 void SetTags(TagsT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags = std::forward<TagsT>(value);
131 }
132 template <typename TagsT = Aws::Vector<Tag>>
134 SetTags(std::forward<TagsT>(value));
135 return *this;
136 }
137 template <typename TagsT = Tag>
139 m_tagsHasBeenSet = true;
140 m_tags.emplace_back(std::forward<TagsT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_containerAssociationName;
146
147 Aws::String m_description;
148
150
151 Aws::Vector<ContainerMonitoringConfiguration> m_containerMonitoringConfigurations;
152
153 Aws::Vector<Tag> m_tags;
154 bool m_containerAssociationNameHasBeenSet = false;
155 bool m_descriptionHasBeenSet = false;
156 bool m_typeHasBeenSet = false;
157 bool m_containerMonitoringConfigurationsHasBeenSet = false;
158 bool m_tagsHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace NetworkFirewall
163} // namespace Aws
CreateContainerAssociationRequest & AddContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
void SetContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
CreateContainerAssociationRequest & WithContainerMonitoringConfigurations(ContainerMonitoringConfigurationsT &&value)
CreateContainerAssociationRequest & WithDescription(DescriptionT &&value)
AWS_NETWORKFIREWALL_API CreateContainerAssociationRequest()=default
CreateContainerAssociationRequest & WithContainerAssociationName(ContainerAssociationNameT &&value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContainerAssociationRequest & WithType(ContainerMonitoringType value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
const Aws::Vector< ContainerMonitoringConfiguration > & GetContainerMonitoringConfigurations() const
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