AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VPCOptions.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_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 OpenSearchService
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_OPENSEARCHSERVICE_API VPCOptions() = default;
40 AWS_OPENSEARCHSERVICE_API VPCOptions(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API VPCOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
52 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
53 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
54 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
55 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
56 VPCOptions& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
57 template<typename SubnetIdsT = Aws::String>
58 VPCOptions& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
60
62
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) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
71 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
72 VPCOptions& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
73 template<typename SecurityGroupIdsT = Aws::String>
74 VPCOptions& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
76 private:
77
78 Aws::Vector<Aws::String> m_subnetIds;
79 bool m_subnetIdsHasBeenSet = false;
80
81 Aws::Vector<Aws::String> m_securityGroupIds;
82 bool m_securityGroupIdsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace OpenSearchService
87} // namespace Aws
AWS_OPENSEARCHSERVICE_API VPCOptions()=default
VPCOptions & WithSubnetIds(SubnetIdsT &&value)
Definition VPCOptions.h:56
VPCOptions & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:72
void SetSubnetIds(SubnetIdsT &&value)
Definition VPCOptions.h:54
AWS_OPENSEARCHSERVICE_API VPCOptions(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:70
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VPCOptions.h:67
VPCOptions & AddSubnetIds(SubnetIdsT &&value)
Definition VPCOptions.h:58
VPCOptions & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VPCOptions.h:74
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:51
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue