AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AddEndpointsRequest.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/EndpointConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GlobalAccelerator
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLOBALACCELERATOR_API AddEndpointsRequest() = 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 "AddEndpoints"; }
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<EndpointConfiguration>& GetEndpointConfigurations() const { return m_endpointConfigurations; }
44 inline bool EndpointConfigurationsHasBeenSet() const { return m_endpointConfigurationsHasBeenSet; }
45 template<typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
46 void SetEndpointConfigurations(EndpointConfigurationsT&& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations = std::forward<EndpointConfigurationsT>(value); }
47 template<typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
48 AddEndpointsRequest& WithEndpointConfigurations(EndpointConfigurationsT&& value) { SetEndpointConfigurations(std::forward<EndpointConfigurationsT>(value)); return *this;}
49 template<typename EndpointConfigurationsT = EndpointConfiguration>
50 AddEndpointsRequest& AddEndpointConfigurations(EndpointConfigurationsT&& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations.emplace_back(std::forward<EndpointConfigurationsT>(value)); return *this; }
52
54
57 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
58 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
59 template<typename EndpointGroupArnT = Aws::String>
60 void SetEndpointGroupArn(EndpointGroupArnT&& value) { m_endpointGroupArnHasBeenSet = true; m_endpointGroupArn = std::forward<EndpointGroupArnT>(value); }
61 template<typename EndpointGroupArnT = Aws::String>
62 AddEndpointsRequest& WithEndpointGroupArn(EndpointGroupArnT&& value) { SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value)); return *this;}
64 private:
65
66 Aws::Vector<EndpointConfiguration> m_endpointConfigurations;
67 bool m_endpointConfigurationsHasBeenSet = false;
68
69 Aws::String m_endpointGroupArn;
70 bool m_endpointGroupArnHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace GlobalAccelerator
75} // 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