AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
AddEndpointsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/globalaccelerator/GlobalAcceleratorRequest.h>
10#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
11#include <aws/globalaccelerator/model/EndpointConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GlobalAccelerator {
17namespace Model {
18
22 public:
23 AWS_GLOBALACCELERATOR_API AddEndpointsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "AddEndpoints"; }
30
31 AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override;
32
33 AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::Vector<EndpointConfiguration>& GetEndpointConfigurations() const { return m_endpointConfigurations; }
40 inline bool EndpointConfigurationsHasBeenSet() const { return m_endpointConfigurationsHasBeenSet; }
41 template <typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
42 void SetEndpointConfigurations(EndpointConfigurationsT&& value) {
43 m_endpointConfigurationsHasBeenSet = true;
44 m_endpointConfigurations = std::forward<EndpointConfigurationsT>(value);
45 }
46 template <typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
47 AddEndpointsRequest& WithEndpointConfigurations(EndpointConfigurationsT&& value) {
48 SetEndpointConfigurations(std::forward<EndpointConfigurationsT>(value));
49 return *this;
50 }
51 template <typename EndpointConfigurationsT = EndpointConfiguration>
52 AddEndpointsRequest& AddEndpointConfigurations(EndpointConfigurationsT&& value) {
53 m_endpointConfigurationsHasBeenSet = true;
54 m_endpointConfigurations.emplace_back(std::forward<EndpointConfigurationsT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
64 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
65 template <typename EndpointGroupArnT = Aws::String>
66 void SetEndpointGroupArn(EndpointGroupArnT&& value) {
67 m_endpointGroupArnHasBeenSet = true;
68 m_endpointGroupArn = std::forward<EndpointGroupArnT>(value);
69 }
70 template <typename EndpointGroupArnT = Aws::String>
71 AddEndpointsRequest& WithEndpointGroupArn(EndpointGroupArnT&& value) {
72 SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value));
73 return *this;
74 }
76 private:
77 Aws::Vector<EndpointConfiguration> m_endpointConfigurations;
78
79 Aws::String m_endpointGroupArn;
80 bool m_endpointConfigurationsHasBeenSet = false;
81 bool m_endpointGroupArnHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace GlobalAccelerator
86} // namespace Aws
AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override
AddEndpointsRequest & AddEndpointConfigurations(EndpointConfigurationsT &&value)
virtual const char * GetServiceRequestName() const override
AddEndpointsRequest & WithEndpointGroupArn(EndpointGroupArnT &&value)
const Aws::Vector< EndpointConfiguration > & GetEndpointConfigurations() const
void SetEndpointConfigurations(EndpointConfigurationsT &&value)
AddEndpointsRequest & WithEndpointConfigurations(EndpointConfigurationsT &&value)
AWS_GLOBALACCELERATOR_API AddEndpointsRequest()=default
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