AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
VPCOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/es/ElasticsearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ElasticsearchService {
21namespace Model {
22
33 public:
34 AWS_ELASTICSEARCHSERVICE_API VPCOptions() = default;
35 AWS_ELASTICSEARCHSERVICE_API VPCOptions(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ELASTICSEARCHSERVICE_API VPCOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
44 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
45 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
46 void SetSubnetIds(SubnetIdsT&& value) {
47 m_subnetIdsHasBeenSet = true;
48 m_subnetIds = std::forward<SubnetIdsT>(value);
49 }
50 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
51 VPCOptions& WithSubnetIds(SubnetIdsT&& value) {
52 SetSubnetIds(std::forward<SubnetIdsT>(value));
53 return *this;
54 }
55 template <typename SubnetIdsT = Aws::String>
56 VPCOptions& AddSubnetIds(SubnetIdsT&& value) {
57 m_subnetIdsHasBeenSet = true;
58 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
68 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
69 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
70 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
71 m_securityGroupIdsHasBeenSet = true;
72 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
73 }
74 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
75 VPCOptions& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
76 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
77 return *this;
78 }
79 template <typename SecurityGroupIdsT = Aws::String>
80 VPCOptions& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
81 m_securityGroupIdsHasBeenSet = true;
82 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
83 return *this;
84 }
86 private:
87 Aws::Vector<Aws::String> m_subnetIds;
88
89 Aws::Vector<Aws::String> m_securityGroupIds;
90 bool m_subnetIdsHasBeenSet = false;
91 bool m_securityGroupIdsHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace ElasticsearchService
96} // 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:67
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:70
VPCOptions & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:80
VPCOptions & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:75
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VPCOptions.h:43
VPCOptions & WithSubnetIds(SubnetIdsT &&value)
Definition VPCOptions.h:51
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue