AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AddCustomRoutingEndpointsRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/globalaccelerator/model/CustomRoutingEndpointConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GlobalAccelerator
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLOBALACCELERATOR_API AddCustomRoutingEndpointsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AddCustomRoutingEndpoints"; }
33
34 AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override;
35
36 AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::Vector<CustomRoutingEndpointConfiguration>& GetEndpointConfigurations() const { return m_endpointConfigurations; }
44 inline bool EndpointConfigurationsHasBeenSet() const { return m_endpointConfigurationsHasBeenSet; }
45 template<typename EndpointConfigurationsT = Aws::Vector<CustomRoutingEndpointConfiguration>>
46 void SetEndpointConfigurations(EndpointConfigurationsT&& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations = std::forward<EndpointConfigurationsT>(value); }
47 template<typename EndpointConfigurationsT = Aws::Vector<CustomRoutingEndpointConfiguration>>
48 AddCustomRoutingEndpointsRequest& WithEndpointConfigurations(EndpointConfigurationsT&& value) { SetEndpointConfigurations(std::forward<EndpointConfigurationsT>(value)); return *this;}
49 template<typename EndpointConfigurationsT = CustomRoutingEndpointConfiguration>
50 AddCustomRoutingEndpointsRequest& AddEndpointConfigurations(EndpointConfigurationsT&& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations.emplace_back(std::forward<EndpointConfigurationsT>(value)); return *this; }
52
54
58 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
59 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
60 template<typename EndpointGroupArnT = Aws::String>
61 void SetEndpointGroupArn(EndpointGroupArnT&& value) { m_endpointGroupArnHasBeenSet = true; m_endpointGroupArn = std::forward<EndpointGroupArnT>(value); }
62 template<typename EndpointGroupArnT = Aws::String>
63 AddCustomRoutingEndpointsRequest& WithEndpointGroupArn(EndpointGroupArnT&& value) { SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value)); return *this;}
65 private:
66
68 bool m_endpointConfigurationsHasBeenSet = false;
69
70 Aws::String m_endpointGroupArn;
71 bool m_endpointGroupArnHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace GlobalAccelerator
76} // namespace Aws
AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddCustomRoutingEndpointsRequest & WithEndpointGroupArn(EndpointGroupArnT &&value)
AddCustomRoutingEndpointsRequest & WithEndpointConfigurations(EndpointConfigurationsT &&value)
AWS_GLOBALACCELERATOR_API AddCustomRoutingEndpointsRequest()=default
AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override
const Aws::Vector< CustomRoutingEndpointConfiguration > & GetEndpointConfigurations() const
AddCustomRoutingEndpointsRequest & AddEndpointConfigurations(EndpointConfigurationsT &&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