AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
VpcConfiguration.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_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 CodeStarconnections {
21namespace Model {
22
29 public:
30 AWS_CODESTARCONNECTIONS_API VpcConfiguration() = default;
31 AWS_CODESTARCONNECTIONS_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODESTARCONNECTIONS_API VpcConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetVpcId() const { return m_vpcId; }
41 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
42 template <typename VpcIdT = Aws::String>
43 void SetVpcId(VpcIdT&& value) {
44 m_vpcIdHasBeenSet = true;
45 m_vpcId = std::forward<VpcIdT>(value);
46 }
47 template <typename VpcIdT = Aws::String>
48 VpcConfiguration& WithVpcId(VpcIdT&& value) {
49 SetVpcId(std::forward<VpcIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
60 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
61 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
62 void SetSubnetIds(SubnetIdsT&& value) {
63 m_subnetIdsHasBeenSet = true;
64 m_subnetIds = std::forward<SubnetIdsT>(value);
65 }
66 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
67 VpcConfiguration& WithSubnetIds(SubnetIdsT&& value) {
68 SetSubnetIds(std::forward<SubnetIdsT>(value));
69 return *this;
70 }
71 template <typename SubnetIdsT = Aws::String>
72 VpcConfiguration& AddSubnetIds(SubnetIdsT&& value) {
73 m_subnetIdsHasBeenSet = true;
74 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
85 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
86 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
87 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
88 m_securityGroupIdsHasBeenSet = true;
89 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
90 }
91 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
92 VpcConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
93 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
94 return *this;
95 }
96 template <typename SecurityGroupIdsT = Aws::String>
97 VpcConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
98 m_securityGroupIdsHasBeenSet = true;
99 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetTlsCertificate() const { return m_tlsCertificate; }
110 inline bool TlsCertificateHasBeenSet() const { return m_tlsCertificateHasBeenSet; }
111 template <typename TlsCertificateT = Aws::String>
112 void SetTlsCertificate(TlsCertificateT&& value) {
113 m_tlsCertificateHasBeenSet = true;
114 m_tlsCertificate = std::forward<TlsCertificateT>(value);
115 }
116 template <typename TlsCertificateT = Aws::String>
117 VpcConfiguration& WithTlsCertificate(TlsCertificateT&& value) {
118 SetTlsCertificate(std::forward<TlsCertificateT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_vpcId;
124
125 Aws::Vector<Aws::String> m_subnetIds;
126
127 Aws::Vector<Aws::String> m_securityGroupIds;
128
129 Aws::String m_tlsCertificate;
130 bool m_vpcIdHasBeenSet = false;
131 bool m_subnetIdsHasBeenSet = false;
132 bool m_securityGroupIdsHasBeenSet = false;
133 bool m_tlsCertificateHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace CodeStarconnections
138} // namespace Aws
VpcConfiguration & AddSubnetIds(SubnetIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_CODESTARCONNECTIONS_API VpcConfiguration()=default
VpcConfiguration & AddSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfiguration & WithTlsCertificate(TlsCertificateT &&value)
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConfiguration & WithSubnetIds(SubnetIdsT &&value)
AWS_CODESTARCONNECTIONS_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CODESTARCONNECTIONS_API VpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfiguration & WithSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfiguration & WithVpcId(VpcIdT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
const Aws::Vector< Aws::String > & GetSubnetIds() 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