AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateVpcEndpointDetail.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 UpdateVpcEndpointDetail();
38 AWS_OPENSEARCHSERVERLESS_API UpdateVpcEndpointDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API UpdateVpcEndpointDetail& 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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline UpdateVpcEndpointDetail& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline UpdateVpcEndpointDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline UpdateVpcEndpointDetail& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; }
62 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
63 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
64 inline UpdateVpcEndpointDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
66
68
71 inline const Aws::String& GetName() const{ return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
75 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 inline UpdateVpcEndpointDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
77 inline UpdateVpcEndpointDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 inline UpdateVpcEndpointDetail& WithName(const char* value) { SetName(value); return *this;}
80
82
87 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
88 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
89 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
90 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
93 inline UpdateVpcEndpointDetail& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
94 inline UpdateVpcEndpointDetail& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
95 inline UpdateVpcEndpointDetail& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
97
99
102 inline const VpcEndpointStatus& GetStatus() const{ return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 inline void SetStatus(const VpcEndpointStatus& value) { m_statusHasBeenSet = true; m_status = value; }
105 inline void SetStatus(VpcEndpointStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
106 inline UpdateVpcEndpointDetail& WithStatus(const VpcEndpointStatus& value) { SetStatus(value); return *this;}
107 inline UpdateVpcEndpointDetail& WithStatus(VpcEndpointStatus&& value) { SetStatus(std::move(value)); return *this;}
109
111
114 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
115 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
116 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
117 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
118 inline UpdateVpcEndpointDetail& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
119 inline UpdateVpcEndpointDetail& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
120 inline UpdateVpcEndpointDetail& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
121 inline UpdateVpcEndpointDetail& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
122 inline UpdateVpcEndpointDetail& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
124 private:
125
126 Aws::String m_id;
127 bool m_idHasBeenSet = false;
128
129 long long m_lastModifiedDate;
130 bool m_lastModifiedDateHasBeenSet = false;
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_securityGroupIds;
136 bool m_securityGroupIdsHasBeenSet = false;
137
138 VpcEndpointStatus m_status;
139 bool m_statusHasBeenSet = false;
140
141 Aws::Vector<Aws::String> m_subnetIds;
142 bool m_subnetIdsHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace OpenSearchServerless
147} // namespace Aws
UpdateVpcEndpointDetail & WithName(Aws::String &&value)
UpdateVpcEndpointDetail & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
UpdateVpcEndpointDetail & AddSubnetIds(const Aws::String &value)
UpdateVpcEndpointDetail & AddSecurityGroupIds(const char *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(const Aws::Vector< Aws::String > &value)
UpdateVpcEndpointDetail & AddSubnetIds(const char *value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
UpdateVpcEndpointDetail & AddSecurityGroupIds(const Aws::String &value)
UpdateVpcEndpointDetail & WithStatus(const VpcEndpointStatus &value)
UpdateVpcEndpointDetail & WithId(const char *value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
UpdateVpcEndpointDetail & AddSubnetIds(Aws::String &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
UpdateVpcEndpointDetail & WithId(Aws::String &&value)
UpdateVpcEndpointDetail & WithStatus(VpcEndpointStatus &&value)
UpdateVpcEndpointDetail & WithName(const char *value)
UpdateVpcEndpointDetail & WithName(const Aws::String &value)
UpdateVpcEndpointDetail & WithSubnetIds(const Aws::Vector< Aws::String > &value)
UpdateVpcEndpointDetail & WithSubnetIds(Aws::Vector< Aws::String > &&value)
UpdateVpcEndpointDetail & AddSecurityGroupIds(Aws::String &&value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateVpcEndpointDetail & WithId(const Aws::String &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