AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
EndpointConfiguration.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/EndpointType.h>
9#include <aws/apigateway/model/IpAddressType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIGateway {
23namespace Model {
24
33 public:
34 AWS_APIGATEWAY_API EndpointConfiguration() = default;
37 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline const Aws::Vector<EndpointType>& GetTypes() const { return m_types; }
48 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
49 template <typename TypesT = Aws::Vector<EndpointType>>
50 void SetTypes(TypesT&& value) {
51 m_typesHasBeenSet = true;
52 m_types = std::forward<TypesT>(value);
53 }
54 template <typename TypesT = Aws::Vector<EndpointType>>
56 SetTypes(std::forward<TypesT>(value));
57 return *this;
58 }
60 m_typesHasBeenSet = true;
61 m_types.push_back(value);
62 return *this;
63 }
65
67
74 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
75 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
76 inline void SetIpAddressType(IpAddressType value) {
77 m_ipAddressTypeHasBeenSet = true;
78 m_ipAddressType = value;
79 }
81 SetIpAddressType(value);
82 return *this;
83 }
85
87
91 inline const Aws::Vector<Aws::String>& GetVpcEndpointIds() const { return m_vpcEndpointIds; }
92 inline bool VpcEndpointIdsHasBeenSet() const { return m_vpcEndpointIdsHasBeenSet; }
93 template <typename VpcEndpointIdsT = Aws::Vector<Aws::String>>
94 void SetVpcEndpointIds(VpcEndpointIdsT&& value) {
95 m_vpcEndpointIdsHasBeenSet = true;
96 m_vpcEndpointIds = std::forward<VpcEndpointIdsT>(value);
97 }
98 template <typename VpcEndpointIdsT = Aws::Vector<Aws::String>>
99 EndpointConfiguration& WithVpcEndpointIds(VpcEndpointIdsT&& value) {
100 SetVpcEndpointIds(std::forward<VpcEndpointIdsT>(value));
101 return *this;
102 }
103 template <typename VpcEndpointIdsT = Aws::String>
104 EndpointConfiguration& AddVpcEndpointIds(VpcEndpointIdsT&& value) {
105 m_vpcEndpointIdsHasBeenSet = true;
106 m_vpcEndpointIds.emplace_back(std::forward<VpcEndpointIdsT>(value));
107 return *this;
108 }
110 private:
112
113 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
114
115 Aws::Vector<Aws::String> m_vpcEndpointIds;
116 bool m_typesHasBeenSet = false;
117 bool m_ipAddressTypeHasBeenSet = false;
118 bool m_vpcEndpointIdsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace APIGateway
123} // namespace Aws
AWS_APIGATEWAY_API EndpointConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetVpcEndpointIds() const
EndpointConfiguration & WithIpAddressType(IpAddressType value)
EndpointConfiguration & WithTypes(TypesT &&value)
AWS_APIGATEWAY_API EndpointConfiguration()=default
EndpointConfiguration & AddVpcEndpointIds(VpcEndpointIdsT &&value)
EndpointConfiguration & AddTypes(EndpointType value)
EndpointConfiguration & WithVpcEndpointIds(VpcEndpointIdsT &&value)
AWS_APIGATEWAY_API EndpointConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EndpointType > & GetTypes() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue