AWS SDK for C++

AWS SDK for C++ Version 1.11.752

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/opensearch/OpenSearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
33 public:
34 AWS_OPENSEARCHSERVICE_API VPCOptions() = default;
35 AWS_OPENSEARCHSERVICE_API VPCOptions(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVICE_API VPCOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
46 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
47 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
48 void SetSubnetIds(SubnetIdsT&& value) {
49 m_subnetIdsHasBeenSet = true;
50 m_subnetIds = std::forward<SubnetIdsT>(value);
51 }
52 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
53 VPCOptions& WithSubnetIds(SubnetIdsT&& value) {
54 SetSubnetIds(std::forward<SubnetIdsT>(value));
55 return *this;
56 }
57 template <typename SubnetIdsT = Aws::String>
58 VPCOptions& AddSubnetIds(SubnetIdsT&& value) {
59 m_subnetIdsHasBeenSet = true;
60 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
72 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
73 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
74 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
75 m_securityGroupIdsHasBeenSet = true;
76 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
77 }
78 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
79 VPCOptions& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
80 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
81 return *this;
82 }
83 template <typename SecurityGroupIdsT = Aws::String>
84 VPCOptions& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
85 m_securityGroupIdsHasBeenSet = true;
86 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
87 return *this;
88 }
90 private:
91 Aws::Vector<Aws::String> m_subnetIds;
92
93 Aws::Vector<Aws::String> m_securityGroupIds;
94 bool m_subnetIdsHasBeenSet = false;
95 bool m_securityGroupIdsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace OpenSearchService
100} // namespace Aws
AWS_OPENSEARCHSERVICE_API VPCOptions()=default
VPCOptions & WithSubnetIds(SubnetIdsT &&value)
Definition VPCOptions.h:53
VPCOptions & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:79
void SetSubnetIds(SubnetIdsT &&value)
Definition VPCOptions.h:48
AWS_OPENSEARCHSERVICE_API VPCOptions(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:74
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VPCOptions.h:71
VPCOptions & AddSubnetIds(SubnetIdsT &&value)
Definition VPCOptions.h:58
VPCOptions & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:84
AWS_OPENSEARCHSERVICE_API VPCOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VPCOptions.h:45
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue