AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
52 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
53 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
54 VPCOptions& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
55 template<typename SubnetIdsT = Aws::String>
56 VPCOptions& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
58
60
63 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
64 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
65 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
66 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
67 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
68 VPCOptions& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
69 template<typename SecurityGroupIdsT = Aws::String>
70 VPCOptions& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
72 private:
73
74 Aws::Vector<Aws::String> m_subnetIds;
75 bool m_subnetIdsHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_securityGroupIds;
78 bool m_securityGroupIdsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ElasticsearchService
83} // namespace Aws
VPCOptions & AddSubnetIds(SubnetIdsT &&value)
Definition VPCOptions.h:56
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VPCOptions.h:63
AWS_ELASTICSEARCHSERVICE_API VPCOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API VPCOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API VPCOptions()=default
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:66
VPCOptions & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:70
VPCOptions & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:68
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VPCOptions.h:49
VPCOptions & WithSubnetIds(SubnetIdsT &&value)
Definition VPCOptions.h:54
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue