AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AllowCustomRoutingTrafficRequest.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/globalaccelerator/GlobalAcceleratorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace GlobalAccelerator
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_GLOBALACCELERATOR_API AllowCustomRoutingTrafficRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AllowCustomRoutingTraffic"; }
32
33 AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override;
34
35 AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
43 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
44 template<typename EndpointGroupArnT = Aws::String>
45 void SetEndpointGroupArn(EndpointGroupArnT&& value) { m_endpointGroupArnHasBeenSet = true; m_endpointGroupArn = std::forward<EndpointGroupArnT>(value); }
46 template<typename EndpointGroupArnT = Aws::String>
47 AllowCustomRoutingTrafficRequest& WithEndpointGroupArn(EndpointGroupArnT&& value) { SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value)); return *this;}
49
51
55 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
56 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
57 template<typename EndpointIdT = Aws::String>
58 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::forward<EndpointIdT>(value); }
59 template<typename EndpointIdT = Aws::String>
60 AllowCustomRoutingTrafficRequest& WithEndpointId(EndpointIdT&& value) { SetEndpointId(std::forward<EndpointIdT>(value)); return *this;}
62
64
72 inline const Aws::Vector<Aws::String>& GetDestinationAddresses() const { return m_destinationAddresses; }
73 inline bool DestinationAddressesHasBeenSet() const { return m_destinationAddressesHasBeenSet; }
74 template<typename DestinationAddressesT = Aws::Vector<Aws::String>>
75 void SetDestinationAddresses(DestinationAddressesT&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses = std::forward<DestinationAddressesT>(value); }
76 template<typename DestinationAddressesT = Aws::Vector<Aws::String>>
77 AllowCustomRoutingTrafficRequest& WithDestinationAddresses(DestinationAddressesT&& value) { SetDestinationAddresses(std::forward<DestinationAddressesT>(value)); return *this;}
78 template<typename DestinationAddressesT = Aws::String>
79 AllowCustomRoutingTrafficRequest& AddDestinationAddresses(DestinationAddressesT&& value) { m_destinationAddressesHasBeenSet = true; m_destinationAddresses.emplace_back(std::forward<DestinationAddressesT>(value)); return *this; }
81
83
87 inline const Aws::Vector<int>& GetDestinationPorts() const { return m_destinationPorts; }
88 inline bool DestinationPortsHasBeenSet() const { return m_destinationPortsHasBeenSet; }
89 template<typename DestinationPortsT = Aws::Vector<int>>
90 void SetDestinationPorts(DestinationPortsT&& value) { m_destinationPortsHasBeenSet = true; m_destinationPorts = std::forward<DestinationPortsT>(value); }
91 template<typename DestinationPortsT = Aws::Vector<int>>
92 AllowCustomRoutingTrafficRequest& WithDestinationPorts(DestinationPortsT&& value) { SetDestinationPorts(std::forward<DestinationPortsT>(value)); return *this;}
93 inline AllowCustomRoutingTrafficRequest& AddDestinationPorts(int value) { m_destinationPortsHasBeenSet = true; m_destinationPorts.push_back(value); return *this; }
95
97
109 inline bool GetAllowAllTrafficToEndpoint() const { return m_allowAllTrafficToEndpoint; }
110 inline bool AllowAllTrafficToEndpointHasBeenSet() const { return m_allowAllTrafficToEndpointHasBeenSet; }
111 inline void SetAllowAllTrafficToEndpoint(bool value) { m_allowAllTrafficToEndpointHasBeenSet = true; m_allowAllTrafficToEndpoint = value; }
114 private:
115
116 Aws::String m_endpointGroupArn;
117 bool m_endpointGroupArnHasBeenSet = false;
118
119 Aws::String m_endpointId;
120 bool m_endpointIdHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_destinationAddresses;
123 bool m_destinationAddressesHasBeenSet = false;
124
125 Aws::Vector<int> m_destinationPorts;
126 bool m_destinationPortsHasBeenSet = false;
127
128 bool m_allowAllTrafficToEndpoint{false};
129 bool m_allowAllTrafficToEndpointHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace GlobalAccelerator
134} // namespace Aws
AWS_GLOBALACCELERATOR_API AllowCustomRoutingTrafficRequest()=default
AllowCustomRoutingTrafficRequest & WithDestinationPorts(DestinationPortsT &&value)
AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override
AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AllowCustomRoutingTrafficRequest & WithEndpointGroupArn(EndpointGroupArnT &&value)
AllowCustomRoutingTrafficRequest & WithEndpointId(EndpointIdT &&value)
AllowCustomRoutingTrafficRequest & WithDestinationAddresses(DestinationAddressesT &&value)
AllowCustomRoutingTrafficRequest & AddDestinationAddresses(DestinationAddressesT &&value)
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