AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 long long GetCreatedDate() const{ return m_createdDate; }
48 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
49 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
50 inline VpcEndpointDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
52
54
57 inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
58 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
59 inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
60 inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
61 inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); }
62 inline VpcEndpointDetail& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
63 inline VpcEndpointDetail& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
64 inline VpcEndpointDetail& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
66
68
71 inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; }
72 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
73 inline void SetFailureMessage(const Aws::String& value) { m_failureMessageHasBeenSet = true; m_failureMessage = value; }
74 inline void SetFailureMessage(Aws::String&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::move(value); }
75 inline void SetFailureMessage(const char* value) { m_failureMessageHasBeenSet = true; m_failureMessage.assign(value); }
76 inline VpcEndpointDetail& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;}
77 inline VpcEndpointDetail& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;}
78 inline VpcEndpointDetail& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;}
80
82
85 inline const Aws::String& GetId() const{ return m_id; }
86 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
87 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
88 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
89 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
90 inline VpcEndpointDetail& WithId(const Aws::String& value) { SetId(value); return *this;}
91 inline VpcEndpointDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
92 inline VpcEndpointDetail& WithId(const char* value) { SetId(value); return *this;}
94
96
99 inline const Aws::String& GetName() const{ return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
102 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 inline VpcEndpointDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
105 inline VpcEndpointDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
106 inline VpcEndpointDetail& WithName(const char* value) { SetName(value); return *this;}
108
110
115 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
116 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
117 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
118 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
120 inline VpcEndpointDetail& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
121 inline VpcEndpointDetail& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
122 inline VpcEndpointDetail& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
123 inline VpcEndpointDetail& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
125
127
130 inline const VpcEndpointStatus& GetStatus() const{ return m_status; }
131 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
132 inline void SetStatus(const VpcEndpointStatus& value) { m_statusHasBeenSet = true; m_status = value; }
133 inline void SetStatus(VpcEndpointStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
134 inline VpcEndpointDetail& WithStatus(const VpcEndpointStatus& value) { SetStatus(value); return *this;}
135 inline VpcEndpointDetail& WithStatus(VpcEndpointStatus&& value) { SetStatus(std::move(value)); return *this;}
137
139
142 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
143 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
144 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
145 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
146 inline VpcEndpointDetail& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
147 inline VpcEndpointDetail& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
148 inline VpcEndpointDetail& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
149 inline VpcEndpointDetail& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
150 inline VpcEndpointDetail& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
152
154
157 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
158 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
159 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
160 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
161 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
162 inline VpcEndpointDetail& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
163 inline VpcEndpointDetail& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
164 inline VpcEndpointDetail& WithVpcId(const char* value) { SetVpcId(value); return *this;}
166 private:
167
168 long long m_createdDate;
169 bool m_createdDateHasBeenSet = false;
170
171 Aws::String m_failureCode;
172 bool m_failureCodeHasBeenSet = false;
173
174 Aws::String m_failureMessage;
175 bool m_failureMessageHasBeenSet = false;
176
177 Aws::String m_id;
178 bool m_idHasBeenSet = false;
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 Aws::Vector<Aws::String> m_securityGroupIds;
184 bool m_securityGroupIdsHasBeenSet = false;
185
186 VpcEndpointStatus m_status;
187 bool m_statusHasBeenSet = false;
188
189 Aws::Vector<Aws::String> m_subnetIds;
190 bool m_subnetIdsHasBeenSet = false;
191
192 Aws::String m_vpcId;
193 bool m_vpcIdHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace OpenSearchServerless
198} // namespace Aws
VpcEndpointDetail & WithVpcId(const Aws::String &value)
VpcEndpointDetail & AddSubnetIds(Aws::String &&value)
VpcEndpointDetail & WithFailureCode(const char *value)
VpcEndpointDetail & WithStatus(VpcEndpointStatus &&value)
VpcEndpointDetail & WithName(const Aws::String &value)
VpcEndpointDetail & WithVpcId(Aws::String &&value)
AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
VpcEndpointDetail & WithVpcId(const char *value)
VpcEndpointDetail & WithId(Aws::String &&value)
VpcEndpointDetail & WithFailureMessage(const char *value)
VpcEndpointDetail & WithFailureMessage(const Aws::String &value)
VpcEndpointDetail & AddSubnetIds(const Aws::String &value)
VpcEndpointDetail & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail()
VpcEndpointDetail & AddSecurityGroupIds(const char *value)
VpcEndpointDetail & AddSecurityGroupIds(const Aws::String &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
VpcEndpointDetail & WithId(const Aws::String &value)
VpcEndpointDetail & WithSubnetIds(const Aws::Vector< Aws::String > &value)
VpcEndpointDetail & WithSubnetIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
VpcEndpointDetail & WithFailureCode(const Aws::String &value)
VpcEndpointDetail & AddSubnetIds(const char *value)
AWS_OPENSEARCHSERVERLESS_API VpcEndpointDetail(Aws::Utils::Json::JsonView jsonValue)
VpcEndpointDetail & WithFailureMessage(Aws::String &&value)
VpcEndpointDetail & WithName(Aws::String &&value)
VpcEndpointDetail & WithName(const char *value)
VpcEndpointDetail & WithFailureCode(Aws::String &&value)
VpcEndpointDetail & WithId(const char *value)
VpcEndpointDetail & AddSecurityGroupIds(Aws::String &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
VpcEndpointDetail & WithStatus(const VpcEndpointStatus &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcEndpointDetail & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetStatus(const VpcEndpointStatus &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