AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
WebAppVpcConfig.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Transfer {
21namespace Model {
22
31 public:
32 AWS_TRANSFER_API WebAppVpcConfig() = default;
33 AWS_TRANSFER_API WebAppVpcConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
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 WebAppVpcConfig& WithSubnetIds(SubnetIdsT&& value) {
52 SetSubnetIds(std::forward<SubnetIdsT>(value));
53 return *this;
54 }
55 template <typename SubnetIdsT = Aws::String>
56 WebAppVpcConfig& 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::String& GetVpcId() const { return m_vpcId; }
68 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
69 template <typename VpcIdT = Aws::String>
70 void SetVpcId(VpcIdT&& value) {
71 m_vpcIdHasBeenSet = true;
72 m_vpcId = std::forward<VpcIdT>(value);
73 }
74 template <typename VpcIdT = Aws::String>
75 WebAppVpcConfig& WithVpcId(VpcIdT&& value) {
76 SetVpcId(std::forward<VpcIdT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
88 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
89 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
90 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
91 m_securityGroupIdsHasBeenSet = true;
92 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
93 }
94 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
95 WebAppVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
96 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
97 return *this;
98 }
99 template <typename SecurityGroupIdsT = Aws::String>
100 WebAppVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
101 m_securityGroupIdsHasBeenSet = true;
102 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
103 return *this;
104 }
106 private:
107 Aws::Vector<Aws::String> m_subnetIds;
108
109 Aws::String m_vpcId;
110
111 Aws::Vector<Aws::String> m_securityGroupIds;
112 bool m_subnetIdsHasBeenSet = false;
113 bool m_vpcIdHasBeenSet = false;
114 bool m_securityGroupIdsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Transfer
119} // 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)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
WebAppVpcConfig & AddSubnetIds(SubnetIdsT &&value)
WebAppVpcConfig & WithVpcId(VpcIdT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&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