AWS SDK for C++  1.9.97
AWS SDK for C++
VPCOptions.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ElasticsearchService
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
48  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
49 
53  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
54 
58  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
59 
63  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
64 
68  inline VPCOptions& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
69 
73  inline VPCOptions& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
74 
78  inline VPCOptions& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
79 
83  inline VPCOptions& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
84 
88  inline VPCOptions& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
89 
90 
94  inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
95 
99  inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
100 
104  inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
105 
109  inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
110 
114  inline VPCOptions& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
115 
119  inline VPCOptions& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
120 
124  inline VPCOptions& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
125 
129  inline VPCOptions& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
130 
134  inline VPCOptions& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
135 
136  private:
137 
138  Aws::Vector<Aws::String> m_subnetIds;
139  bool m_subnetIdsHasBeenSet;
140 
141  Aws::Vector<Aws::String> m_securityGroupIds;
142  bool m_securityGroupIdsHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace ElasticsearchService
147 } // namespace Aws
Aws::ElasticsearchService::Model::VPCOptions::WithSubnetIds
VPCOptions & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: VPCOptions.h:73
Aws::ElasticsearchService::Model::VPCOptions::VPCOptions
VPCOptions()
Aws::ElasticsearchService::Model::VPCOptions::AddSubnetIds
VPCOptions & AddSubnetIds(Aws::String &&value)
Definition: VPCOptions.h:83
Aws::ElasticsearchService::Model::VPCOptions::SetSubnetIds
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: VPCOptions.h:58
Aws::ElasticsearchService::Model::VPCOptions::AddSecurityGroupIds
VPCOptions & AddSecurityGroupIds(const char *value)
Definition: VPCOptions.h:134
Aws::ElasticsearchService::Model::VPCOptions::operator=
VPCOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::VPCOptions::AddSecurityGroupIds
VPCOptions & AddSecurityGroupIds(Aws::String &&value)
Definition: VPCOptions.h:129
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::VPCOptions::SecurityGroupIdsHasBeenSet
bool SecurityGroupIdsHasBeenSet() const
Definition: VPCOptions.h:99
Aws::ElasticsearchService::Model::VPCOptions::GetSecurityGroupIds
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition: VPCOptions.h:94
AWSVector.h
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::VPCOptions::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::VPCOptions::WithSecurityGroupIds
VPCOptions & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: VPCOptions.h:119
Aws::ElasticsearchService::Model::VPCOptions::SetSubnetIds
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: VPCOptions.h:63
Aws::ElasticsearchService::Model::VPCOptions::WithSubnetIds
VPCOptions & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: VPCOptions.h:68
Aws::ElasticsearchService::Model::VPCOptions::AddSubnetIds
VPCOptions & AddSubnetIds(const Aws::String &value)
Definition: VPCOptions.h:78
Aws::ElasticsearchService::Model::VPCOptions::GetSubnetIds
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: VPCOptions.h:48
Aws::ElasticsearchService::Model::VPCOptions::SubnetIdsHasBeenSet
bool SubnetIdsHasBeenSet() const
Definition: VPCOptions.h:53
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::VPCOptions::AddSubnetIds
VPCOptions & AddSubnetIds(const char *value)
Definition: VPCOptions.h:88
Aws::ElasticsearchService::Model::VPCOptions::AddSecurityGroupIds
VPCOptions & AddSecurityGroupIds(const Aws::String &value)
Definition: VPCOptions.h:124
Aws::ElasticsearchService::Model::VPCOptions
Definition: VPCOptions.h:37
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::VPCOptions::VPCOptions
VPCOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::VPCOptions::WithSecurityGroupIds
VPCOptions & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: VPCOptions.h:114
Aws::ElasticsearchService::Model::VPCOptions::SetSecurityGroupIds
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: VPCOptions.h:109
Aws::ElasticsearchService::Model::VPCOptions::SetSecurityGroupIds
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: VPCOptions.h:104
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97