AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CustomRoutingEndpointGroup.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/GlobalAccelerator_EXPORTS.h>
10#include <aws/globalaccelerator/model/CustomRoutingDestinationDescription.h>
11#include <aws/globalaccelerator/model/CustomRoutingEndpointDescription.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GlobalAccelerator {
23namespace Model {
24
33 public:
34 AWS_GLOBALACCELERATOR_API CustomRoutingEndpointGroup() = default;
35 AWS_GLOBALACCELERATOR_API CustomRoutingEndpointGroup(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
44 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
45 template <typename EndpointGroupArnT = Aws::String>
46 void SetEndpointGroupArn(EndpointGroupArnT&& value) {
47 m_endpointGroupArnHasBeenSet = true;
48 m_endpointGroupArn = std::forward<EndpointGroupArnT>(value);
49 }
50 template <typename EndpointGroupArnT = Aws::String>
52 SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetEndpointGroupRegion() const { return m_endpointGroupRegion; }
62 inline bool EndpointGroupRegionHasBeenSet() const { return m_endpointGroupRegionHasBeenSet; }
63 template <typename EndpointGroupRegionT = Aws::String>
64 void SetEndpointGroupRegion(EndpointGroupRegionT&& value) {
65 m_endpointGroupRegionHasBeenSet = true;
66 m_endpointGroupRegion = std::forward<EndpointGroupRegionT>(value);
67 }
68 template <typename EndpointGroupRegionT = Aws::String>
69 CustomRoutingEndpointGroup& WithEndpointGroupRegion(EndpointGroupRegionT&& value) {
70 SetEndpointGroupRegion(std::forward<EndpointGroupRegionT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::Vector<CustomRoutingDestinationDescription>& GetDestinationDescriptions() const { return m_destinationDescriptions; }
82 inline bool DestinationDescriptionsHasBeenSet() const { return m_destinationDescriptionsHasBeenSet; }
83 template <typename DestinationDescriptionsT = Aws::Vector<CustomRoutingDestinationDescription>>
84 void SetDestinationDescriptions(DestinationDescriptionsT&& value) {
85 m_destinationDescriptionsHasBeenSet = true;
86 m_destinationDescriptions = std::forward<DestinationDescriptionsT>(value);
87 }
88 template <typename DestinationDescriptionsT = Aws::Vector<CustomRoutingDestinationDescription>>
89 CustomRoutingEndpointGroup& WithDestinationDescriptions(DestinationDescriptionsT&& value) {
90 SetDestinationDescriptions(std::forward<DestinationDescriptionsT>(value));
91 return *this;
92 }
93 template <typename DestinationDescriptionsT = CustomRoutingDestinationDescription>
94 CustomRoutingEndpointGroup& AddDestinationDescriptions(DestinationDescriptionsT&& value) {
95 m_destinationDescriptionsHasBeenSet = true;
96 m_destinationDescriptions.emplace_back(std::forward<DestinationDescriptionsT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Vector<CustomRoutingEndpointDescription>& GetEndpointDescriptions() const { return m_endpointDescriptions; }
107 inline bool EndpointDescriptionsHasBeenSet() const { return m_endpointDescriptionsHasBeenSet; }
108 template <typename EndpointDescriptionsT = Aws::Vector<CustomRoutingEndpointDescription>>
109 void SetEndpointDescriptions(EndpointDescriptionsT&& value) {
110 m_endpointDescriptionsHasBeenSet = true;
111 m_endpointDescriptions = std::forward<EndpointDescriptionsT>(value);
112 }
113 template <typename EndpointDescriptionsT = Aws::Vector<CustomRoutingEndpointDescription>>
114 CustomRoutingEndpointGroup& WithEndpointDescriptions(EndpointDescriptionsT&& value) {
115 SetEndpointDescriptions(std::forward<EndpointDescriptionsT>(value));
116 return *this;
117 }
118 template <typename EndpointDescriptionsT = CustomRoutingEndpointDescription>
119 CustomRoutingEndpointGroup& AddEndpointDescriptions(EndpointDescriptionsT&& value) {
120 m_endpointDescriptionsHasBeenSet = true;
121 m_endpointDescriptions.emplace_back(std::forward<EndpointDescriptionsT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_endpointGroupArn;
127
128 Aws::String m_endpointGroupRegion;
129
130 Aws::Vector<CustomRoutingDestinationDescription> m_destinationDescriptions;
131
133 bool m_endpointGroupArnHasBeenSet = false;
134 bool m_endpointGroupRegionHasBeenSet = false;
135 bool m_destinationDescriptionsHasBeenSet = false;
136 bool m_endpointDescriptionsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace GlobalAccelerator
141} // namespace Aws
AWS_GLOBALACCELERATOR_API CustomRoutingEndpointGroup(Aws::Utils::Json::JsonView jsonValue)
CustomRoutingEndpointGroup & WithEndpointGroupArn(EndpointGroupArnT &&value)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< CustomRoutingEndpointDescription > & GetEndpointDescriptions() const
CustomRoutingEndpointGroup & WithEndpointDescriptions(EndpointDescriptionsT &&value)
AWS_GLOBALACCELERATOR_API CustomRoutingEndpointGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomRoutingEndpointGroup & AddDestinationDescriptions(DestinationDescriptionsT &&value)
CustomRoutingEndpointGroup & AddEndpointDescriptions(EndpointDescriptionsT &&value)
AWS_GLOBALACCELERATOR_API CustomRoutingEndpointGroup()=default
CustomRoutingEndpointGroup & WithEndpointGroupRegion(EndpointGroupRegionT &&value)
const Aws::Vector< CustomRoutingDestinationDescription > & GetDestinationDescriptions() const
CustomRoutingEndpointGroup & WithDestinationDescriptions(DestinationDescriptionsT &&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