AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
VpcOptions.h
1
6#pragma once
7#include <aws/osis/OSIS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/osis/model/VpcAttachmentOptions.h>
10#include <aws/osis/model/VpcEndpointManagement.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace OSIS
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_OSIS_API VpcOptions() = default;
39 AWS_OSIS_API VpcOptions(Aws::Utils::Json::JsonView jsonValue);
42
43
45
48 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
49 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
50 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
51 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
52 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
53 VpcOptions& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
54 template<typename SubnetIdsT = Aws::String>
55 VpcOptions& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
57
59
62 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
63 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
64 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
65 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
66 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
67 VpcOptions& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
68 template<typename SecurityGroupIdsT = Aws::String>
69 VpcOptions& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
71
73
76 inline const VpcAttachmentOptions& GetVpcAttachmentOptions() const { return m_vpcAttachmentOptions; }
77 inline bool VpcAttachmentOptionsHasBeenSet() const { return m_vpcAttachmentOptionsHasBeenSet; }
78 template<typename VpcAttachmentOptionsT = VpcAttachmentOptions>
79 void SetVpcAttachmentOptions(VpcAttachmentOptionsT&& value) { m_vpcAttachmentOptionsHasBeenSet = true; m_vpcAttachmentOptions = std::forward<VpcAttachmentOptionsT>(value); }
80 template<typename VpcAttachmentOptionsT = VpcAttachmentOptions>
81 VpcOptions& WithVpcAttachmentOptions(VpcAttachmentOptionsT&& value) { SetVpcAttachmentOptions(std::forward<VpcAttachmentOptionsT>(value)); return *this;}
83
85
89 inline VpcEndpointManagement GetVpcEndpointManagement() const { return m_vpcEndpointManagement; }
90 inline bool VpcEndpointManagementHasBeenSet() const { return m_vpcEndpointManagementHasBeenSet; }
91 inline void SetVpcEndpointManagement(VpcEndpointManagement value) { m_vpcEndpointManagementHasBeenSet = true; m_vpcEndpointManagement = value; }
94 private:
95
96 Aws::Vector<Aws::String> m_subnetIds;
97 bool m_subnetIdsHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_securityGroupIds;
100 bool m_securityGroupIdsHasBeenSet = false;
101
102 VpcAttachmentOptions m_vpcAttachmentOptions;
103 bool m_vpcAttachmentOptionsHasBeenSet = false;
104
106 bool m_vpcEndpointManagementHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace OSIS
111} // namespace Aws
AWS_OSIS_API Aws::Utils::Json::JsonValue Jsonize() const
VpcOptions & WithVpcEndpointManagement(VpcEndpointManagement value)
Definition VpcOptions.h:92
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcOptions.h:62
VpcEndpointManagement GetVpcEndpointManagement() const
Definition VpcOptions.h:89
AWS_OSIS_API VpcOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcOptions & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcOptions.h:69
bool SecurityGroupIdsHasBeenSet() const
Definition VpcOptions.h:63
AWS_OSIS_API VpcOptions()=default
void SetVpcAttachmentOptions(VpcAttachmentOptionsT &&value)
Definition VpcOptions.h:79
bool SubnetIdsHasBeenSet() const
Definition VpcOptions.h:49
void SetVpcEndpointManagement(VpcEndpointManagement value)
Definition VpcOptions.h:91
bool VpcEndpointManagementHasBeenSet() const
Definition VpcOptions.h:90
VpcOptions & WithVpcAttachmentOptions(VpcAttachmentOptionsT &&value)
Definition VpcOptions.h:81
VpcOptions & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcOptions.h:67
AWS_OSIS_API VpcOptions(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcOptions.h:51
VpcOptions & AddSubnetIds(SubnetIdsT &&value)
Definition VpcOptions.h:55
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcOptions.h:48
bool VpcAttachmentOptionsHasBeenSet() const
Definition VpcOptions.h:77
const VpcAttachmentOptions & GetVpcAttachmentOptions() const
Definition VpcOptions.h:76
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcOptions.h:65
VpcOptions & WithSubnetIds(SubnetIdsT &&value)
Definition VpcOptions.h:53
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue