AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CustomRoutingEndpointGroup.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/globalaccelerator/model/CustomRoutingDestinationDescription.h>
11#include <aws/globalaccelerator/model/CustomRoutingEndpointDescription.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GlobalAccelerator
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_GLOBALACCELERATOR_API CustomRoutingEndpointGroup() = default;
40 AWS_GLOBALACCELERATOR_API CustomRoutingEndpointGroup(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
50 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
51 template<typename EndpointGroupArnT = Aws::String>
52 void SetEndpointGroupArn(EndpointGroupArnT&& value) { m_endpointGroupArnHasBeenSet = true; m_endpointGroupArn = std::forward<EndpointGroupArnT>(value); }
53 template<typename EndpointGroupArnT = Aws::String>
54 CustomRoutingEndpointGroup& WithEndpointGroupArn(EndpointGroupArnT&& value) { SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value)); return *this;}
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) { m_endpointGroupRegionHasBeenSet = true; m_endpointGroupRegion = std::forward<EndpointGroupRegionT>(value); }
65 template<typename EndpointGroupRegionT = Aws::String>
66 CustomRoutingEndpointGroup& WithEndpointGroupRegion(EndpointGroupRegionT&& value) { SetEndpointGroupRegion(std::forward<EndpointGroupRegionT>(value)); return *this;}
68
70
75 inline const Aws::Vector<CustomRoutingDestinationDescription>& GetDestinationDescriptions() const { return m_destinationDescriptions; }
76 inline bool DestinationDescriptionsHasBeenSet() const { return m_destinationDescriptionsHasBeenSet; }
77 template<typename DestinationDescriptionsT = Aws::Vector<CustomRoutingDestinationDescription>>
78 void SetDestinationDescriptions(DestinationDescriptionsT&& value) { m_destinationDescriptionsHasBeenSet = true; m_destinationDescriptions = std::forward<DestinationDescriptionsT>(value); }
79 template<typename DestinationDescriptionsT = Aws::Vector<CustomRoutingDestinationDescription>>
80 CustomRoutingEndpointGroup& WithDestinationDescriptions(DestinationDescriptionsT&& value) { SetDestinationDescriptions(std::forward<DestinationDescriptionsT>(value)); return *this;}
81 template<typename DestinationDescriptionsT = CustomRoutingDestinationDescription>
82 CustomRoutingEndpointGroup& AddDestinationDescriptions(DestinationDescriptionsT&& value) { m_destinationDescriptionsHasBeenSet = true; m_destinationDescriptions.emplace_back(std::forward<DestinationDescriptionsT>(value)); return *this; }
84
86
90 inline const Aws::Vector<CustomRoutingEndpointDescription>& GetEndpointDescriptions() const { return m_endpointDescriptions; }
91 inline bool EndpointDescriptionsHasBeenSet() const { return m_endpointDescriptionsHasBeenSet; }
92 template<typename EndpointDescriptionsT = Aws::Vector<CustomRoutingEndpointDescription>>
93 void SetEndpointDescriptions(EndpointDescriptionsT&& value) { m_endpointDescriptionsHasBeenSet = true; m_endpointDescriptions = std::forward<EndpointDescriptionsT>(value); }
94 template<typename EndpointDescriptionsT = Aws::Vector<CustomRoutingEndpointDescription>>
95 CustomRoutingEndpointGroup& WithEndpointDescriptions(EndpointDescriptionsT&& value) { SetEndpointDescriptions(std::forward<EndpointDescriptionsT>(value)); return *this;}
96 template<typename EndpointDescriptionsT = CustomRoutingEndpointDescription>
97 CustomRoutingEndpointGroup& AddEndpointDescriptions(EndpointDescriptionsT&& value) { m_endpointDescriptionsHasBeenSet = true; m_endpointDescriptions.emplace_back(std::forward<EndpointDescriptionsT>(value)); return *this; }
99 private:
100
101 Aws::String m_endpointGroupArn;
102 bool m_endpointGroupArnHasBeenSet = false;
103
104 Aws::String m_endpointGroupRegion;
105 bool m_endpointGroupRegionHasBeenSet = false;
106
107 Aws::Vector<CustomRoutingDestinationDescription> m_destinationDescriptions;
108 bool m_destinationDescriptionsHasBeenSet = false;
109
111 bool m_endpointDescriptionsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace GlobalAccelerator
116} // 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