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/CustomRoutingProtocol.h>
12#include <aws/globalaccelerator/model/SocketAddress.h>
23namespace GlobalAccelerator {
49 m_acceleratorPortHasBeenSet =
true;
50 m_acceleratorPort = value;
64 template <
typename Endpo
intGroupArnT = Aws::String>
66 m_endpointGroupArnHasBeenSet =
true;
67 m_endpointGroupArn = std::forward<EndpointGroupArnT>(value);
69 template <
typename Endpo
intGroupArnT = Aws::String>
82 template <
typename Endpo
intIdT = Aws::String>
84 m_endpointIdHasBeenSet =
true;
85 m_endpointId = std::forward<EndpointIdT>(value);
87 template <
typename Endpo
intIdT = Aws::String>
101 template <
typename DestinationSocketAddressT = SocketAddress>
103 m_destinationSocketAddressHasBeenSet =
true;
104 m_destinationSocketAddress = std::forward<DestinationSocketAddressT>(value);
106 template <
typename DestinationSocketAddressT = SocketAddress>
119 template <
typename ProtocolsT = Aws::Vector<CustomRoutingProtocol>>
121 m_protocolsHasBeenSet =
true;
122 m_protocols = std::forward<ProtocolsT>(value);
124 template <
typename ProtocolsT = Aws::Vector<CustomRoutingProtocol>>
130 m_protocolsHasBeenSet =
true;
131 m_protocols.push_back(value);
145 m_destinationTrafficStateHasBeenSet =
true;
146 m_destinationTrafficState = value;
154 int m_acceleratorPort{0};
160 SocketAddress m_destinationSocketAddress;
165 bool m_acceleratorPortHasBeenSet =
false;
166 bool m_endpointGroupArnHasBeenSet =
false;
167 bool m_endpointIdHasBeenSet =
false;
168 bool m_destinationSocketAddressHasBeenSet =
false;
169 bool m_protocolsHasBeenSet =
false;
170 bool m_destinationTrafficStateHasBeenSet =
false;
bool ProtocolsHasBeenSet() const
bool EndpointGroupArnHasBeenSet() const
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEndpointId(EndpointIdT &&value)
bool DestinationSocketAddressHasBeenSet() const
const Aws::String & GetEndpointId() const
PortMapping & AddProtocols(CustomRoutingProtocol value)
PortMapping & WithEndpointGroupArn(EndpointGroupArnT &&value)
PortMapping & WithEndpointId(EndpointIdT &&value)
int GetAcceleratorPort() const
const Aws::Vector< CustomRoutingProtocol > & GetProtocols() const
AWS_GLOBALACCELERATOR_API PortMapping(Aws::Utils::Json::JsonView jsonValue)
void SetDestinationSocketAddress(DestinationSocketAddressT &&value)
PortMapping & WithAcceleratorPort(int value)
const Aws::String & GetEndpointGroupArn() const
PortMapping & WithProtocols(ProtocolsT &&value)
AWS_GLOBALACCELERATOR_API PortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
const SocketAddress & GetDestinationSocketAddress() const
PortMapping & WithDestinationTrafficState(CustomRoutingDestinationTrafficState value)
bool EndpointIdHasBeenSet() const
CustomRoutingDestinationTrafficState GetDestinationTrafficState() const
bool DestinationTrafficStateHasBeenSet() const
bool AcceleratorPortHasBeenSet() const
void SetAcceleratorPort(int value)
void SetDestinationTrafficState(CustomRoutingDestinationTrafficState value)
void SetProtocols(ProtocolsT &&value)
void SetEndpointGroupArn(EndpointGroupArnT &&value)
AWS_GLOBALACCELERATOR_API PortMapping()=default
PortMapping & WithDestinationSocketAddress(DestinationSocketAddressT &&value)
CustomRoutingDestinationTrafficState
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue