AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VPCOptions.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ElasticsearchService
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_ELASTICSEARCHSERVICE_API VPCOptions();
40 AWS_ELASTICSEARCHSERVICE_API VPCOptions(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ELASTICSEARCHSERVICE_API VPCOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
50 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
51 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
52 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
53 inline VPCOptions& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
54 inline VPCOptions& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
55 inline VPCOptions& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
56 inline VPCOptions& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
57 inline VPCOptions& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
59
61
64 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
65 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
66 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
67 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
68 inline VPCOptions& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
69 inline VPCOptions& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
70 inline VPCOptions& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
71 inline VPCOptions& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
72 inline VPCOptions& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
74 private:
75
76 Aws::Vector<Aws::String> m_subnetIds;
77 bool m_subnetIdsHasBeenSet = false;
78
79 Aws::Vector<Aws::String> m_securityGroupIds;
80 bool m_securityGroupIdsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ElasticsearchService
85} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
VPCOptions & AddSubnetIds(const char *value)
Definition VPCOptions.h:57
VPCOptions & AddSecurityGroupIds(const Aws::String &value)
Definition VPCOptions.h:70
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VPCOptions.h:64
VPCOptions & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VPCOptions.h:54
AWS_ELASTICSEARCHSERVICE_API VPCOptions(Aws::Utils::Json::JsonView jsonValue)
VPCOptions & AddSubnetIds(const Aws::String &value)
Definition VPCOptions.h:55
VPCOptions & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VPCOptions.h:53
AWS_ELASTICSEARCHSERVICE_API VPCOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API VPCOptions()
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VPCOptions.h:66
VPCOptions & AddSecurityGroupIds(Aws::String &&value)
Definition VPCOptions.h:71
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition VPCOptions.h:52
VPCOptions & AddSubnetIds(Aws::String &&value)
Definition VPCOptions.h:56
VPCOptions & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VPCOptions.h:69
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition VPCOptions.h:67
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VPCOptions.h:49
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition VPCOptions.h:51
VPCOptions & AddSecurityGroupIds(const char *value)
Definition VPCOptions.h:72
VPCOptions & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition VPCOptions.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue