AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DestinationPortMapping.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/globalaccelerator/model/SocketAddress.h>
11#include <aws/globalaccelerator/model/IpAddressType.h>
12#include <aws/globalaccelerator/model/CustomRoutingDestinationTrafficState.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GlobalAccelerator
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GLOBALACCELERATOR_API DestinationPortMapping() = default;
40 AWS_GLOBALACCELERATOR_API DestinationPortMapping(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GLOBALACCELERATOR_API DestinationPortMapping& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetAcceleratorArn() const { return m_acceleratorArn; }
51 inline bool AcceleratorArnHasBeenSet() const { return m_acceleratorArnHasBeenSet; }
52 template<typename AcceleratorArnT = Aws::String>
53 void SetAcceleratorArn(AcceleratorArnT&& value) { m_acceleratorArnHasBeenSet = true; m_acceleratorArn = std::forward<AcceleratorArnT>(value); }
54 template<typename AcceleratorArnT = Aws::String>
55 DestinationPortMapping& WithAcceleratorArn(AcceleratorArnT&& value) { SetAcceleratorArn(std::forward<AcceleratorArnT>(value)); return *this;}
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) { m_acceleratorSocketAddressesHasBeenSet = true; m_acceleratorSocketAddresses = std::forward<AcceleratorSocketAddressesT>(value); }
67 template<typename AcceleratorSocketAddressesT = Aws::Vector<SocketAddress>>
68 DestinationPortMapping& WithAcceleratorSocketAddresses(AcceleratorSocketAddressesT&& value) { SetAcceleratorSocketAddresses(std::forward<AcceleratorSocketAddressesT>(value)); return *this;}
69 template<typename AcceleratorSocketAddressesT = SocketAddress>
70 DestinationPortMapping& AddAcceleratorSocketAddresses(AcceleratorSocketAddressesT&& value) { m_acceleratorSocketAddressesHasBeenSet = true; m_acceleratorSocketAddresses.emplace_back(std::forward<AcceleratorSocketAddressesT>(value)); return *this; }
72
74
77 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
78 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
79 template<typename EndpointGroupArnT = Aws::String>
80 void SetEndpointGroupArn(EndpointGroupArnT&& value) { m_endpointGroupArnHasBeenSet = true; m_endpointGroupArn = std::forward<EndpointGroupArnT>(value); }
81 template<typename EndpointGroupArnT = Aws::String>
82 DestinationPortMapping& WithEndpointGroupArn(EndpointGroupArnT&& value) { SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value)); return *this;}
84
86
89 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
90 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
91 template<typename EndpointIdT = Aws::String>
92 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::forward<EndpointIdT>(value); }
93 template<typename EndpointIdT = Aws::String>
94 DestinationPortMapping& WithEndpointId(EndpointIdT&& value) { SetEndpointId(std::forward<EndpointIdT>(value)); return *this;}
96
98
101 inline const Aws::String& GetEndpointGroupRegion() const { return m_endpointGroupRegion; }
102 inline bool EndpointGroupRegionHasBeenSet() const { return m_endpointGroupRegionHasBeenSet; }
103 template<typename EndpointGroupRegionT = Aws::String>
104 void SetEndpointGroupRegion(EndpointGroupRegionT&& value) { m_endpointGroupRegionHasBeenSet = true; m_endpointGroupRegion = std::forward<EndpointGroupRegionT>(value); }
105 template<typename EndpointGroupRegionT = Aws::String>
106 DestinationPortMapping& WithEndpointGroupRegion(EndpointGroupRegionT&& value) { SetEndpointGroupRegion(std::forward<EndpointGroupRegionT>(value)); return *this;}
108
110
114 inline const SocketAddress& GetDestinationSocketAddress() const { return m_destinationSocketAddress; }
115 inline bool DestinationSocketAddressHasBeenSet() const { return m_destinationSocketAddressHasBeenSet; }
116 template<typename DestinationSocketAddressT = SocketAddress>
117 void SetDestinationSocketAddress(DestinationSocketAddressT&& value) { m_destinationSocketAddressHasBeenSet = true; m_destinationSocketAddress = std::forward<DestinationSocketAddressT>(value); }
118 template<typename DestinationSocketAddressT = SocketAddress>
119 DestinationPortMapping& WithDestinationSocketAddress(DestinationSocketAddressT&& value) { SetDestinationSocketAddress(std::forward<DestinationSocketAddressT>(value)); return *this;}
121
123
127 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
128 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
129 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
132
134
139 inline CustomRoutingDestinationTrafficState GetDestinationTrafficState() const { return m_destinationTrafficState; }
140 inline bool DestinationTrafficStateHasBeenSet() const { return m_destinationTrafficStateHasBeenSet; }
141 inline void SetDestinationTrafficState(CustomRoutingDestinationTrafficState value) { m_destinationTrafficStateHasBeenSet = true; m_destinationTrafficState = value; }
144 private:
145
146 Aws::String m_acceleratorArn;
147 bool m_acceleratorArnHasBeenSet = false;
148
149 Aws::Vector<SocketAddress> m_acceleratorSocketAddresses;
150 bool m_acceleratorSocketAddressesHasBeenSet = false;
151
152 Aws::String m_endpointGroupArn;
153 bool m_endpointGroupArnHasBeenSet = false;
154
155 Aws::String m_endpointId;
156 bool m_endpointIdHasBeenSet = false;
157
158 Aws::String m_endpointGroupRegion;
159 bool m_endpointGroupRegionHasBeenSet = false;
160
161 SocketAddress m_destinationSocketAddress;
162 bool m_destinationSocketAddressHasBeenSet = false;
163
164 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
165 bool m_ipAddressTypeHasBeenSet = false;
166
168 bool m_destinationTrafficStateHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace GlobalAccelerator
173} // 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