AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VpcEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/VPCDerivedInfo.h>
10#include <aws/opensearch/model/VpcEndpointStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchService {
22namespace Model {
23
31 public:
32 AWS_OPENSEARCHSERVICE_API VpcEndpoint() = default;
33 AWS_OPENSEARCHSERVICE_API VpcEndpoint(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API VpcEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
42 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
43 template <typename VpcEndpointIdT = Aws::String>
44 void SetVpcEndpointId(VpcEndpointIdT&& value) {
45 m_vpcEndpointIdHasBeenSet = true;
46 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
47 }
48 template <typename VpcEndpointIdT = Aws::String>
49 VpcEndpoint& WithVpcEndpointId(VpcEndpointIdT&& value) {
50 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVpcEndpointOwner() const { return m_vpcEndpointOwner; }
60 inline bool VpcEndpointOwnerHasBeenSet() const { return m_vpcEndpointOwnerHasBeenSet; }
61 template <typename VpcEndpointOwnerT = Aws::String>
62 void SetVpcEndpointOwner(VpcEndpointOwnerT&& value) {
63 m_vpcEndpointOwnerHasBeenSet = true;
64 m_vpcEndpointOwner = std::forward<VpcEndpointOwnerT>(value);
65 }
66 template <typename VpcEndpointOwnerT = Aws::String>
67 VpcEndpoint& WithVpcEndpointOwner(VpcEndpointOwnerT&& value) {
68 SetVpcEndpointOwner(std::forward<VpcEndpointOwnerT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetDomainArn() const { return m_domainArn; }
79 inline bool DomainArnHasBeenSet() const { return m_domainArnHasBeenSet; }
80 template <typename DomainArnT = Aws::String>
81 void SetDomainArn(DomainArnT&& value) {
82 m_domainArnHasBeenSet = true;
83 m_domainArn = std::forward<DomainArnT>(value);
84 }
85 template <typename DomainArnT = Aws::String>
86 VpcEndpoint& WithDomainArn(DomainArnT&& value) {
87 SetDomainArn(std::forward<DomainArnT>(value));
88 return *this;
89 }
91
93
97 inline const VPCDerivedInfo& GetVpcOptions() const { return m_vpcOptions; }
98 inline bool VpcOptionsHasBeenSet() const { return m_vpcOptionsHasBeenSet; }
99 template <typename VpcOptionsT = VPCDerivedInfo>
100 void SetVpcOptions(VpcOptionsT&& value) {
101 m_vpcOptionsHasBeenSet = true;
102 m_vpcOptions = std::forward<VpcOptionsT>(value);
103 }
104 template <typename VpcOptionsT = VPCDerivedInfo>
105 VpcEndpoint& WithVpcOptions(VpcOptionsT&& value) {
106 SetVpcOptions(std::forward<VpcOptionsT>(value));
107 return *this;
108 }
110
112
115 inline VpcEndpointStatus GetStatus() const { return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(VpcEndpointStatus value) {
118 m_statusHasBeenSet = true;
119 m_status = value;
120 }
122 SetStatus(value);
123 return *this;
124 }
126
128
131 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
132 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
133 template <typename EndpointT = Aws::String>
134 void SetEndpoint(EndpointT&& value) {
135 m_endpointHasBeenSet = true;
136 m_endpoint = std::forward<EndpointT>(value);
137 }
138 template <typename EndpointT = Aws::String>
139 VpcEndpoint& WithEndpoint(EndpointT&& value) {
140 SetEndpoint(std::forward<EndpointT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_vpcEndpointId;
146
147 Aws::String m_vpcEndpointOwner;
148
149 Aws::String m_domainArn;
150
151 VPCDerivedInfo m_vpcOptions;
152
154
155 Aws::String m_endpoint;
156 bool m_vpcEndpointIdHasBeenSet = false;
157 bool m_vpcEndpointOwnerHasBeenSet = false;
158 bool m_domainArnHasBeenSet = false;
159 bool m_vpcOptionsHasBeenSet = false;
160 bool m_statusHasBeenSet = false;
161 bool m_endpointHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace OpenSearchService
166} // namespace Aws
VpcEndpoint & WithVpcOptions(VpcOptionsT &&value)
VpcEndpoint & WithEndpoint(EndpointT &&value)
const Aws::String & GetEndpoint() const
VpcEndpoint & WithStatus(VpcEndpointStatus value)
void SetStatus(VpcEndpointStatus value)
void SetVpcOptions(VpcOptionsT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
VpcEndpoint & WithVpcEndpointOwner(VpcEndpointOwnerT &&value)
Definition VpcEndpoint.h:67
VpcEndpoint & WithVpcEndpointId(VpcEndpointIdT &&value)
Definition VpcEndpoint.h:49
void SetVpcEndpointOwner(VpcEndpointOwnerT &&value)
Definition VpcEndpoint.h:62
VpcEndpoint & WithDomainArn(DomainArnT &&value)
Definition VpcEndpoint.h:86
AWS_OPENSEARCHSERVICE_API VpcEndpoint()=default
void SetDomainArn(DomainArnT &&value)
Definition VpcEndpoint.h:81
const VPCDerivedInfo & GetVpcOptions() const
Definition VpcEndpoint.h:97
const Aws::String & GetDomainArn() const
Definition VpcEndpoint.h:78
AWS_OPENSEARCHSERVICE_API VpcEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVpcEndpointOwner() const
Definition VpcEndpoint.h:59
AWS_OPENSEARCHSERVICE_API VpcEndpoint(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVpcEndpointId() const
Definition VpcEndpoint.h:41
void SetVpcEndpointId(VpcEndpointIdT &&value)
Definition VpcEndpoint.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue