AWS SDK for C++

AWS SDK for C++ Version 1.11.811

Loading...
Searching...
No Matches
WebAppVpcConfig.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/WebAppVpcEndpointIpAddressType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Transfer {
22namespace Model {
23
32 public:
33 AWS_TRANSFER_API WebAppVpcConfig() = default;
34 AWS_TRANSFER_API WebAppVpcConfig(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
45 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
46 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
47 void SetSubnetIds(SubnetIdsT&& value) {
48 m_subnetIdsHasBeenSet = true;
49 m_subnetIds = std::forward<SubnetIdsT>(value);
50 }
51 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
52 WebAppVpcConfig& WithSubnetIds(SubnetIdsT&& value) {
53 SetSubnetIds(std::forward<SubnetIdsT>(value));
54 return *this;
55 }
56 template <typename SubnetIdsT = Aws::String>
57 WebAppVpcConfig& AddSubnetIds(SubnetIdsT&& value) {
58 m_subnetIdsHasBeenSet = true;
59 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetVpcId() const { return m_vpcId; }
69 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
70 template <typename VpcIdT = Aws::String>
71 void SetVpcId(VpcIdT&& value) {
72 m_vpcIdHasBeenSet = true;
73 m_vpcId = std::forward<VpcIdT>(value);
74 }
75 template <typename VpcIdT = Aws::String>
76 WebAppVpcConfig& WithVpcId(VpcIdT&& value) {
77 SetVpcId(std::forward<VpcIdT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
89 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
90 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
91 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
92 m_securityGroupIdsHasBeenSet = true;
93 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
94 }
95 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
96 WebAppVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
97 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
98 return *this;
99 }
100 template <typename SecurityGroupIdsT = Aws::String>
101 WebAppVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
102 m_securityGroupIdsHasBeenSet = true;
103 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
104 return *this;
105 }
107
109
113 inline WebAppVpcEndpointIpAddressType GetIpAddressType() const { return m_ipAddressType; }
114 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
116 m_ipAddressTypeHasBeenSet = true;
117 m_ipAddressType = value;
118 }
120 SetIpAddressType(value);
121 return *this;
122 }
124 private:
125 Aws::Vector<Aws::String> m_subnetIds;
126
127 Aws::String m_vpcId;
128
129 Aws::Vector<Aws::String> m_securityGroupIds;
130
132 bool m_subnetIdsHasBeenSet = false;
133 bool m_vpcIdHasBeenSet = false;
134 bool m_securityGroupIdsHasBeenSet = false;
135 bool m_ipAddressTypeHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Transfer
140} // namespace Aws
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::String & GetVpcId() const
AWS_TRANSFER_API WebAppVpcConfig()=default
WebAppVpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_TRANSFER_API WebAppVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API WebAppVpcConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetIds(SubnetIdsT &&value)
WebAppVpcConfig & WithSubnetIds(SubnetIdsT &&value)
WebAppVpcConfig & WithIpAddressType(WebAppVpcEndpointIpAddressType value)
WebAppVpcEndpointIpAddressType GetIpAddressType() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
WebAppVpcConfig & AddSubnetIds(SubnetIdsT &&value)
WebAppVpcConfig & WithVpcId(VpcIdT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
void SetIpAddressType(WebAppVpcEndpointIpAddressType value)
WebAppVpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue