AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
17#include <utility>
18
19namespace Aws {
20namespace MailManager {
21namespace Model {
22
26 public:
27 AWS_MAILMANAGER_API CreateIngressPointRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateIngressPoint"; }
34
35 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
36
37 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template <typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) {
48 m_clientTokenHasBeenSet = true;
49 m_clientToken = std::forward<ClientTokenT>(value);
50 }
51 template <typename ClientTokenT = Aws::String>
53 SetClientToken(std::forward<ClientTokenT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetIngressPointName() const { return m_ingressPointName; }
63 inline bool IngressPointNameHasBeenSet() const { return m_ingressPointNameHasBeenSet; }
64 template <typename IngressPointNameT = Aws::String>
65 void SetIngressPointName(IngressPointNameT&& value) {
66 m_ingressPointNameHasBeenSet = true;
67 m_ingressPointName = std::forward<IngressPointNameT>(value);
68 }
69 template <typename IngressPointNameT = Aws::String>
70 CreateIngressPointRequest& WithIngressPointName(IngressPointNameT&& value) {
71 SetIngressPointName(std::forward<IngressPointNameT>(value));
72 return *this;
73 }
75
77
80 inline IngressPointType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(IngressPointType value) {
83 m_typeHasBeenSet = true;
84 m_type = value;
85 }
87 SetType(value);
88 return *this;
89 }
91
93
97 inline const Aws::String& GetRuleSetId() const { return m_ruleSetId; }
98 inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; }
99 template <typename RuleSetIdT = Aws::String>
100 void SetRuleSetId(RuleSetIdT&& value) {
101 m_ruleSetIdHasBeenSet = true;
102 m_ruleSetId = std::forward<RuleSetIdT>(value);
103 }
104 template <typename RuleSetIdT = Aws::String>
106 SetRuleSetId(std::forward<RuleSetIdT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetTrafficPolicyId() const { return m_trafficPolicyId; }
117 inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }
118 template <typename TrafficPolicyIdT = Aws::String>
119 void SetTrafficPolicyId(TrafficPolicyIdT&& value) {
120 m_trafficPolicyIdHasBeenSet = true;
121 m_trafficPolicyId = std::forward<TrafficPolicyIdT>(value);
122 }
123 template <typename TrafficPolicyIdT = Aws::String>
125 SetTrafficPolicyId(std::forward<TrafficPolicyIdT>(value));
126 return *this;
127 }
129
131
135 inline const IngressPointConfiguration& GetIngressPointConfiguration() const { return m_ingressPointConfiguration; }
136 inline bool IngressPointConfigurationHasBeenSet() const { return m_ingressPointConfigurationHasBeenSet; }
137 template <typename IngressPointConfigurationT = IngressPointConfiguration>
138 void SetIngressPointConfiguration(IngressPointConfigurationT&& value) {
139 m_ingressPointConfigurationHasBeenSet = true;
140 m_ingressPointConfiguration = std::forward<IngressPointConfigurationT>(value);
141 }
142 template <typename IngressPointConfigurationT = IngressPointConfiguration>
143 CreateIngressPointRequest& WithIngressPointConfiguration(IngressPointConfigurationT&& value) {
144 SetIngressPointConfiguration(std::forward<IngressPointConfigurationT>(value));
145 return *this;
146 }
148
150
155 inline const NetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
156 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
157 template <typename NetworkConfigurationT = NetworkConfiguration>
158 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
159 m_networkConfigurationHasBeenSet = true;
160 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
161 }
162 template <typename NetworkConfigurationT = NetworkConfiguration>
163 CreateIngressPointRequest& WithNetworkConfiguration(NetworkConfigurationT&& value) {
164 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
165 return *this;
166 }
168
170
174 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template <typename TagsT = Aws::Vector<Tag>>
177 void SetTags(TagsT&& value) {
178 m_tagsHasBeenSet = true;
179 m_tags = std::forward<TagsT>(value);
180 }
181 template <typename TagsT = Aws::Vector<Tag>>
183 SetTags(std::forward<TagsT>(value));
184 return *this;
185 }
186 template <typename TagsT = Tag>
188 m_tagsHasBeenSet = true;
189 m_tags.emplace_back(std::forward<TagsT>(value));
190 return *this;
191 }
193 private:
195
196 Aws::String m_ingressPointName;
197
199
200 Aws::String m_ruleSetId;
201
202 Aws::String m_trafficPolicyId;
203
204 IngressPointConfiguration m_ingressPointConfiguration;
205
206 NetworkConfiguration m_networkConfiguration;
207
208 Aws::Vector<Tag> m_tags;
209 bool m_clientTokenHasBeenSet = true;
210 bool m_ingressPointNameHasBeenSet = false;
211 bool m_typeHasBeenSet = false;
212 bool m_ruleSetIdHasBeenSet = false;
213 bool m_trafficPolicyIdHasBeenSet = false;
214 bool m_ingressPointConfigurationHasBeenSet = false;
215 bool m_networkConfigurationHasBeenSet = false;
216 bool m_tagsHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace MailManager
221} // 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 & 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