AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/opensearchserverless/model/VpcEndpointStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.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() = default;
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 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 UpdateVpcEndpointDetail& 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 UpdateVpcEndpointDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline VpcEndpointStatus GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(VpcEndpointStatus value) { m_statusHasBeenSet = true; m_status = value; }
74 inline UpdateVpcEndpointDetail& WithStatus(VpcEndpointStatus value) { SetStatus(value); return *this;}
76
78
81 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
82 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
83 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
84 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
85 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
86 UpdateVpcEndpointDetail& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
87 template<typename SubnetIdsT = Aws::String>
88 UpdateVpcEndpointDetail& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
90
92
97 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
98 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
99 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
100 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
101 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
102 UpdateVpcEndpointDetail& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
103 template<typename SecurityGroupIdsT = Aws::String>
104 UpdateVpcEndpointDetail& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
106
108
111 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
112 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
113 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
114 inline UpdateVpcEndpointDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
116 private:
117
118 Aws::String m_id;
119 bool m_idHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
125 bool m_statusHasBeenSet = false;
126
127 Aws::Vector<Aws::String> m_subnetIds;
128 bool m_subnetIdsHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_securityGroupIds;
131 bool m_securityGroupIdsHasBeenSet = false;
132
133 long long m_lastModifiedDate{0};
134 bool m_lastModifiedDateHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace OpenSearchServerless
139} // 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