AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateIngressPointRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mailmanager/MailManagerRequest.h>
11#include <aws/mailmanager/MailManager_EXPORTS.h>
12#include <aws/mailmanager/model/IngressPointConfiguration.h>
13#include <aws/mailmanager/model/IngressPointType.h>
14#include <aws/mailmanager/model/NetworkConfiguration.h>
15#include <aws/mailmanager/model/Tag.h>
16#include <aws/mailmanager/model/TlsPolicy.h>
17
18#include <utility>
19
20namespace Aws {
21namespace MailManager {
22namespace Model {
23
27 public:
28 AWS_MAILMANAGER_API CreateIngressPointRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateIngressPoint"; }
35
36 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
37
38 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template <typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) {
49 m_clientTokenHasBeenSet = true;
50 m_clientToken = std::forward<ClientTokenT>(value);
51 }
52 template <typename ClientTokenT = Aws::String>
54 SetClientToken(std::forward<ClientTokenT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetIngressPointName() const { return m_ingressPointName; }
64 inline bool IngressPointNameHasBeenSet() const { return m_ingressPointNameHasBeenSet; }
65 template <typename IngressPointNameT = Aws::String>
66 void SetIngressPointName(IngressPointNameT&& value) {
67 m_ingressPointNameHasBeenSet = true;
68 m_ingressPointName = std::forward<IngressPointNameT>(value);
69 }
70 template <typename IngressPointNameT = Aws::String>
71 CreateIngressPointRequest& WithIngressPointName(IngressPointNameT&& value) {
72 SetIngressPointName(std::forward<IngressPointNameT>(value));
73 return *this;
74 }
76
78
81 inline IngressPointType GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(IngressPointType value) {
84 m_typeHasBeenSet = true;
85 m_type = value;
86 }
88 SetType(value);
89 return *this;
90 }
92
94
98 inline const Aws::String& GetRuleSetId() const { return m_ruleSetId; }
99 inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; }
100 template <typename RuleSetIdT = Aws::String>
101 void SetRuleSetId(RuleSetIdT&& value) {
102 m_ruleSetIdHasBeenSet = true;
103 m_ruleSetId = std::forward<RuleSetIdT>(value);
104 }
105 template <typename RuleSetIdT = Aws::String>
107 SetRuleSetId(std::forward<RuleSetIdT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetTrafficPolicyId() const { return m_trafficPolicyId; }
118 inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }
119 template <typename TrafficPolicyIdT = Aws::String>
120 void SetTrafficPolicyId(TrafficPolicyIdT&& value) {
121 m_trafficPolicyIdHasBeenSet = true;
122 m_trafficPolicyId = std::forward<TrafficPolicyIdT>(value);
123 }
124 template <typename TrafficPolicyIdT = Aws::String>
126 SetTrafficPolicyId(std::forward<TrafficPolicyIdT>(value));
127 return *this;
128 }
130
132
136 inline const IngressPointConfiguration& GetIngressPointConfiguration() const { return m_ingressPointConfiguration; }
137 inline bool IngressPointConfigurationHasBeenSet() const { return m_ingressPointConfigurationHasBeenSet; }
138 template <typename IngressPointConfigurationT = IngressPointConfiguration>
139 void SetIngressPointConfiguration(IngressPointConfigurationT&& value) {
140 m_ingressPointConfigurationHasBeenSet = true;
141 m_ingressPointConfiguration = std::forward<IngressPointConfigurationT>(value);
142 }
143 template <typename IngressPointConfigurationT = IngressPointConfiguration>
144 CreateIngressPointRequest& WithIngressPointConfiguration(IngressPointConfigurationT&& value) {
145 SetIngressPointConfiguration(std::forward<IngressPointConfigurationT>(value));
146 return *this;
147 }
149
151
156 inline const NetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
157 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
158 template <typename NetworkConfigurationT = NetworkConfiguration>
159 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
160 m_networkConfigurationHasBeenSet = true;
161 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
162 }
163 template <typename NetworkConfigurationT = NetworkConfiguration>
164 CreateIngressPointRequest& WithNetworkConfiguration(NetworkConfigurationT&& value) {
165 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
166 return *this;
167 }
169
171
175 inline TlsPolicy GetTlsPolicy() const { return m_tlsPolicy; }
176 inline bool TlsPolicyHasBeenSet() const { return m_tlsPolicyHasBeenSet; }
177 inline void SetTlsPolicy(TlsPolicy value) {
178 m_tlsPolicyHasBeenSet = true;
179 m_tlsPolicy = value;
180 }
182 SetTlsPolicy(value);
183 return *this;
184 }
186
188
192 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 template <typename TagsT = Aws::Vector<Tag>>
195 void SetTags(TagsT&& value) {
196 m_tagsHasBeenSet = true;
197 m_tags = std::forward<TagsT>(value);
198 }
199 template <typename TagsT = Aws::Vector<Tag>>
201 SetTags(std::forward<TagsT>(value));
202 return *this;
203 }
204 template <typename TagsT = Tag>
206 m_tagsHasBeenSet = true;
207 m_tags.emplace_back(std::forward<TagsT>(value));
208 return *this;
209 }
211 private:
213
214 Aws::String m_ingressPointName;
215
217
218 Aws::String m_ruleSetId;
219
220 Aws::String m_trafficPolicyId;
221
222 IngressPointConfiguration m_ingressPointConfiguration;
223
224 NetworkConfiguration m_networkConfiguration;
225
226 TlsPolicy m_tlsPolicy{TlsPolicy::NOT_SET};
227
228 Aws::Vector<Tag> m_tags;
229 bool m_clientTokenHasBeenSet = true;
230 bool m_ingressPointNameHasBeenSet = false;
231 bool m_typeHasBeenSet = false;
232 bool m_ruleSetIdHasBeenSet = false;
233 bool m_trafficPolicyIdHasBeenSet = false;
234 bool m_ingressPointConfigurationHasBeenSet = false;
235 bool m_networkConfigurationHasBeenSet = false;
236 bool m_tlsPolicyHasBeenSet = false;
237 bool m_tagsHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace MailManager
242} // namespace Aws
const NetworkConfiguration & GetNetworkConfiguration() const
CreateIngressPointRequest & AddTags(TagsT &&value)
CreateIngressPointRequest & WithRuleSetId(RuleSetIdT &&value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
AWS_MAILMANAGER_API CreateIngressPointRequest()=default
CreateIngressPointRequest & WithTlsPolicy(TlsPolicy value)
CreateIngressPointRequest & WithTrafficPolicyId(TrafficPolicyIdT &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetIngressPointConfiguration(IngressPointConfigurationT &&value)
CreateIngressPointRequest & WithTags(TagsT &&value)
CreateIngressPointRequest & WithIngressPointName(IngressPointNameT &&value)
CreateIngressPointRequest & WithIngressPointConfiguration(IngressPointConfigurationT &&value)
const IngressPointConfiguration & GetIngressPointConfiguration() const
virtual const char * GetServiceRequestName() const override
CreateIngressPointRequest & WithClientToken(ClientTokenT &&value)
CreateIngressPointRequest & WithType(IngressPointType value)
CreateIngressPointRequest & WithNetworkConfiguration(NetworkConfigurationT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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