AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateVpcEndpointDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
10#include <aws/opensearchserverless/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 OpenSearchServerless {
22namespace Model {
23
31 public:
32 AWS_OPENSEARCHSERVERLESS_API UpdateVpcEndpointDetail() = default;
33 AWS_OPENSEARCHSERVERLESS_API UpdateVpcEndpointDetail(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API UpdateVpcEndpointDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
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) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline VpcEndpointStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(VpcEndpointStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
94 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
95 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
96 void SetSubnetIds(SubnetIdsT&& value) {
97 m_subnetIdsHasBeenSet = true;
98 m_subnetIds = std::forward<SubnetIdsT>(value);
99 }
100 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
102 SetSubnetIds(std::forward<SubnetIdsT>(value));
103 return *this;
104 }
105 template <typename SubnetIdsT = Aws::String>
107 m_subnetIdsHasBeenSet = true;
108 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
109 return *this;
110 }
112
114
119 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
120 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
121 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
122 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
123 m_securityGroupIdsHasBeenSet = true;
124 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
125 }
126 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
127 UpdateVpcEndpointDetail& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
128 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
129 return *this;
130 }
131 template <typename SecurityGroupIdsT = Aws::String>
132 UpdateVpcEndpointDetail& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
133 m_securityGroupIdsHasBeenSet = true;
134 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
135 return *this;
136 }
138
140
143 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
144 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
145 inline void SetLastModifiedDate(long long value) {
146 m_lastModifiedDateHasBeenSet = true;
147 m_lastModifiedDate = value;
148 }
150 SetLastModifiedDate(value);
151 return *this;
152 }
154 private:
155 Aws::String m_id;
156
157 Aws::String m_name;
158
160
161 Aws::Vector<Aws::String> m_subnetIds;
162
163 Aws::Vector<Aws::String> m_securityGroupIds;
164
165 long long m_lastModifiedDate{0};
166 bool m_idHasBeenSet = false;
167 bool m_nameHasBeenSet = false;
168 bool m_statusHasBeenSet = false;
169 bool m_subnetIdsHasBeenSet = false;
170 bool m_securityGroupIdsHasBeenSet = false;
171 bool m_lastModifiedDateHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace OpenSearchServerless
176} // namespace Aws
const Aws::Vector< Aws::String > & GetSubnetIds() const
UpdateVpcEndpointDetail & WithStatus(VpcEndpointStatus value)
UpdateVpcEndpointDetail & WithLastModifiedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API UpdateVpcEndpointDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API UpdateVpcEndpointDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdateVpcEndpointDetail & WithSecurityGroupIds(SecurityGroupIdsT &&value)
UpdateVpcEndpointDetail & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
UpdateVpcEndpointDetail & AddSubnetIds(SubnetIdsT &&value)
AWS_OPENSEARCHSERVERLESS_API UpdateVpcEndpointDetail()=default
UpdateVpcEndpointDetail & WithSubnetIds(SubnetIdsT &&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