AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
DestinationPortMapping.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/globalaccelerator/GlobalAccelerator_EXPORTS.h>
10#include <aws/globalaccelerator/model/CustomRoutingDestinationTrafficState.h>
11#include <aws/globalaccelerator/model/IpAddressType.h>
12#include <aws/globalaccelerator/model/SocketAddress.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GlobalAccelerator {
24namespace Model {
25
33 public:
34 AWS_GLOBALACCELERATOR_API DestinationPortMapping() = default;
35 AWS_GLOBALACCELERATOR_API DestinationPortMapping(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLOBALACCELERATOR_API DestinationPortMapping& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetAcceleratorArn() const { return m_acceleratorArn; }
45 inline bool AcceleratorArnHasBeenSet() const { return m_acceleratorArnHasBeenSet; }
46 template <typename AcceleratorArnT = Aws::String>
47 void SetAcceleratorArn(AcceleratorArnT&& value) {
48 m_acceleratorArnHasBeenSet = true;
49 m_acceleratorArn = std::forward<AcceleratorArnT>(value);
50 }
51 template <typename AcceleratorArnT = Aws::String>
52 DestinationPortMapping& WithAcceleratorArn(AcceleratorArnT&& value) {
53 SetAcceleratorArn(std::forward<AcceleratorArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::Vector<SocketAddress>& GetAcceleratorSocketAddresses() const { return m_acceleratorSocketAddresses; }
64 inline bool AcceleratorSocketAddressesHasBeenSet() const { return m_acceleratorSocketAddressesHasBeenSet; }
65 template <typename AcceleratorSocketAddressesT = Aws::Vector<SocketAddress>>
66 void SetAcceleratorSocketAddresses(AcceleratorSocketAddressesT&& value) {
67 m_acceleratorSocketAddressesHasBeenSet = true;
68 m_acceleratorSocketAddresses = std::forward<AcceleratorSocketAddressesT>(value);
69 }
70 template <typename AcceleratorSocketAddressesT = Aws::Vector<SocketAddress>>
71 DestinationPortMapping& WithAcceleratorSocketAddresses(AcceleratorSocketAddressesT&& value) {
72 SetAcceleratorSocketAddresses(std::forward<AcceleratorSocketAddressesT>(value));
73 return *this;
74 }
75 template <typename AcceleratorSocketAddressesT = SocketAddress>
76 DestinationPortMapping& AddAcceleratorSocketAddresses(AcceleratorSocketAddressesT&& value) {
77 m_acceleratorSocketAddressesHasBeenSet = true;
78 m_acceleratorSocketAddresses.emplace_back(std::forward<AcceleratorSocketAddressesT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
88 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
89 template <typename EndpointGroupArnT = Aws::String>
90 void SetEndpointGroupArn(EndpointGroupArnT&& value) {
91 m_endpointGroupArnHasBeenSet = true;
92 m_endpointGroupArn = std::forward<EndpointGroupArnT>(value);
93 }
94 template <typename EndpointGroupArnT = Aws::String>
95 DestinationPortMapping& WithEndpointGroupArn(EndpointGroupArnT&& value) {
96 SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
106 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
107 template <typename EndpointIdT = Aws::String>
108 void SetEndpointId(EndpointIdT&& value) {
109 m_endpointIdHasBeenSet = true;
110 m_endpointId = std::forward<EndpointIdT>(value);
111 }
112 template <typename EndpointIdT = Aws::String>
114 SetEndpointId(std::forward<EndpointIdT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetEndpointGroupRegion() const { return m_endpointGroupRegion; }
124 inline bool EndpointGroupRegionHasBeenSet() const { return m_endpointGroupRegionHasBeenSet; }
125 template <typename EndpointGroupRegionT = Aws::String>
126 void SetEndpointGroupRegion(EndpointGroupRegionT&& value) {
127 m_endpointGroupRegionHasBeenSet = true;
128 m_endpointGroupRegion = std::forward<EndpointGroupRegionT>(value);
129 }
130 template <typename EndpointGroupRegionT = Aws::String>
131 DestinationPortMapping& WithEndpointGroupRegion(EndpointGroupRegionT&& value) {
132 SetEndpointGroupRegion(std::forward<EndpointGroupRegionT>(value));
133 return *this;
134 }
136
138
142 inline const SocketAddress& GetDestinationSocketAddress() const { return m_destinationSocketAddress; }
143 inline bool DestinationSocketAddressHasBeenSet() const { return m_destinationSocketAddressHasBeenSet; }
144 template <typename DestinationSocketAddressT = SocketAddress>
145 void SetDestinationSocketAddress(DestinationSocketAddressT&& value) {
146 m_destinationSocketAddressHasBeenSet = true;
147 m_destinationSocketAddress = std::forward<DestinationSocketAddressT>(value);
148 }
149 template <typename DestinationSocketAddressT = SocketAddress>
150 DestinationPortMapping& WithDestinationSocketAddress(DestinationSocketAddressT&& value) {
151 SetDestinationSocketAddress(std::forward<DestinationSocketAddressT>(value));
152 return *this;
153 }
155
157
161 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
162 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
163 inline void SetIpAddressType(IpAddressType value) {
164 m_ipAddressTypeHasBeenSet = true;
165 m_ipAddressType = value;
166 }
168 SetIpAddressType(value);
169 return *this;
170 }
172
174
179 inline CustomRoutingDestinationTrafficState GetDestinationTrafficState() const { return m_destinationTrafficState; }
180 inline bool DestinationTrafficStateHasBeenSet() const { return m_destinationTrafficStateHasBeenSet; }
182 m_destinationTrafficStateHasBeenSet = true;
183 m_destinationTrafficState = value;
184 }
190 private:
191 Aws::String m_acceleratorArn;
192
193 Aws::Vector<SocketAddress> m_acceleratorSocketAddresses;
194
195 Aws::String m_endpointGroupArn;
196
197 Aws::String m_endpointId;
198
199 Aws::String m_endpointGroupRegion;
200
201 SocketAddress m_destinationSocketAddress;
202
203 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
204
206 bool m_acceleratorArnHasBeenSet = false;
207 bool m_acceleratorSocketAddressesHasBeenSet = false;
208 bool m_endpointGroupArnHasBeenSet = false;
209 bool m_endpointIdHasBeenSet = false;
210 bool m_endpointGroupRegionHasBeenSet = false;
211 bool m_destinationSocketAddressHasBeenSet = false;
212 bool m_ipAddressTypeHasBeenSet = false;
213 bool m_destinationTrafficStateHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace GlobalAccelerator
218} // namespace Aws
CustomRoutingDestinationTrafficState GetDestinationTrafficState() const
DestinationPortMapping & WithDestinationTrafficState(CustomRoutingDestinationTrafficState value)
AWS_GLOBALACCELERATOR_API DestinationPortMapping(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
DestinationPortMapping & WithDestinationSocketAddress(DestinationSocketAddressT &&value)
const Aws::Vector< SocketAddress > & GetAcceleratorSocketAddresses() const
DestinationPortMapping & WithIpAddressType(IpAddressType value)
void SetDestinationTrafficState(CustomRoutingDestinationTrafficState value)
void SetDestinationSocketAddress(DestinationSocketAddressT &&value)
DestinationPortMapping & AddAcceleratorSocketAddresses(AcceleratorSocketAddressesT &&value)
AWS_GLOBALACCELERATOR_API DestinationPortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
DestinationPortMapping & WithAcceleratorArn(AcceleratorArnT &&value)
DestinationPortMapping & WithEndpointId(EndpointIdT &&value)
DestinationPortMapping & WithEndpointGroupRegion(EndpointGroupRegionT &&value)
void SetAcceleratorSocketAddresses(AcceleratorSocketAddressesT &&value)
DestinationPortMapping & WithAcceleratorSocketAddresses(AcceleratorSocketAddressesT &&value)
AWS_GLOBALACCELERATOR_API DestinationPortMapping()=default
DestinationPortMapping & WithEndpointGroupArn(EndpointGroupArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue