7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/globalaccelerator/model/SocketAddress.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/globalaccelerator/model/CustomRoutingDestinationTrafficState.h>
12#include <aws/globalaccelerator/model/CustomRoutingProtocol.h>
25namespace GlobalAccelerator
54 inline void SetAcceleratorPort(
int value) { m_acceleratorPortHasBeenSet =
true; m_acceleratorPort = value; }
64 template<
typename Endpo
intGroupArnT = Aws::String>
65 void SetEndpointGroupArn(EndpointGroupArnT&& value) { m_endpointGroupArnHasBeenSet =
true; m_endpointGroupArn = std::forward<EndpointGroupArnT>(value); }
66 template<
typename Endpo
intGroupArnT = Aws::String>
76 template<
typename Endpo
intIdT = Aws::String>
77 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet =
true; m_endpointId = std::forward<EndpointIdT>(value); }
78 template<
typename Endpo
intIdT = Aws::String>
89 template<
typename DestinationSocketAddressT = SocketAddress>
90 void SetDestinationSocketAddress(DestinationSocketAddressT&& value) { m_destinationSocketAddressHasBeenSet =
true; m_destinationSocketAddress = std::forward<DestinationSocketAddressT>(value); }
91 template<
typename DestinationSocketAddressT = SocketAddress>
101 template<
typename ProtocolsT = Aws::Vector<CustomRoutingProtocol>>
102 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet =
true; m_protocols = std::forward<ProtocolsT>(value); }
103 template<
typename ProtocolsT = Aws::Vector<CustomRoutingProtocol>>
121 int m_acceleratorPort{0};
122 bool m_acceleratorPortHasBeenSet =
false;
125 bool m_endpointGroupArnHasBeenSet =
false;
128 bool m_endpointIdHasBeenSet =
false;
130 SocketAddress m_destinationSocketAddress;
131 bool m_destinationSocketAddressHasBeenSet =
false;
134 bool m_protocolsHasBeenSet =
false;
137 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