AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcEndpointDetail.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearchserverless/model/VpcEndpointStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchServerless
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail() = default;
38 AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 VpcEndpointDetail& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 VpcEndpointDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetVpcId() const { return m_vpcId; }
72 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
73 template<typename VpcIdT = Aws::String>
74 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
75 template<typename VpcIdT = Aws::String>
76 VpcEndpointDetail& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
78
80
83 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
84 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
85 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
86 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
87 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
88 VpcEndpointDetail& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
89 template<typename SubnetIdsT = Aws::String>
90 VpcEndpointDetail& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
92
94
99 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
100 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
101 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
102 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
103 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
104 VpcEndpointDetail& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
105 template<typename SecurityGroupIdsT = Aws::String>
106 VpcEndpointDetail& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
108
110
113 inline VpcEndpointStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 inline void SetStatus(VpcEndpointStatus value) { m_statusHasBeenSet = true; m_status = value; }
116 inline VpcEndpointDetail& WithStatus(VpcEndpointStatus value) { SetStatus(value); return *this;}
118
120
123 inline long long GetCreatedDate() const { return m_createdDate; }
124 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
125 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
126 inline VpcEndpointDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
128
130
133 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
134 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
135 template<typename FailureCodeT = Aws::String>
136 void SetFailureCode(FailureCodeT&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::forward<FailureCodeT>(value); }
137 template<typename FailureCodeT = Aws::String>
138 VpcEndpointDetail& WithFailureCode(FailureCodeT&& value) { SetFailureCode(std::forward<FailureCodeT>(value)); return *this;}
140
142
145 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
146 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
147 template<typename FailureMessageT = Aws::String>
148 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::forward<FailureMessageT>(value); }
149 template<typename FailureMessageT = Aws::String>
150 VpcEndpointDetail& WithFailureMessage(FailureMessageT&& value) { SetFailureMessage(std::forward<FailureMessageT>(value)); return *this;}
152 private:
153
154 Aws::String m_id;
155 bool m_idHasBeenSet = false;
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159
160 Aws::String m_vpcId;
161 bool m_vpcIdHasBeenSet = false;
162
163 Aws::Vector<Aws::String> m_subnetIds;
164 bool m_subnetIdsHasBeenSet = false;
165
166 Aws::Vector<Aws::String> m_securityGroupIds;
167 bool m_securityGroupIdsHasBeenSet = false;
168
170 bool m_statusHasBeenSet = false;
171
172 long long m_createdDate{0};
173 bool m_createdDateHasBeenSet = false;
174
175 Aws::String m_failureCode;
176 bool m_failureCodeHasBeenSet = false;
177
178 Aws::String m_failureMessage;
179 bool m_failureMessageHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace OpenSearchServerless
184} // namespace Aws
VpcEndpointDetail & AddSubnetIds(SubnetIdsT &&value)
VpcEndpointDetail & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcEndpointDetail & WithStatus(VpcEndpointStatus value)
VpcEndpointDetail & WithSecurityGroupIds(SecurityGroupIdsT &&value)
VpcEndpointDetail & WithFailureMessage(FailureMessageT &&value)
AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail()=default
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail(Aws::Utils::Json::JsonView jsonValue)
VpcEndpointDetail & WithFailureCode(FailureCodeT &&value)
VpcEndpointDetail & WithVpcId(VpcIdT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcEndpointDetail & WithSubnetIds(SubnetIdsT &&value)
VpcEndpointDetail & WithCreatedDate(long long 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