AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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 CodeStarconnections
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CODESTARCONNECTIONS_API VpcConfiguration() = default;
36 AWS_CODESTARCONNECTIONS_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODESTARCONNECTIONS_API VpcConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetVpcId() const { return m_vpcId; }
47 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
48 template<typename VpcIdT = Aws::String>
49 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
50 template<typename VpcIdT = Aws::String>
51 VpcConfiguration& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
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) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
63 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
64 VpcConfiguration& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
65 template<typename SubnetIdsT = Aws::String>
66 VpcConfiguration& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
68
70
74 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
75 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
76 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
77 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
78 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
79 VpcConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
80 template<typename SecurityGroupIdsT = Aws::String>
81 VpcConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
83
85
89 inline const Aws::String& GetTlsCertificate() const { return m_tlsCertificate; }
90 inline bool TlsCertificateHasBeenSet() const { return m_tlsCertificateHasBeenSet; }
91 template<typename TlsCertificateT = Aws::String>
92 void SetTlsCertificate(TlsCertificateT&& value) { m_tlsCertificateHasBeenSet = true; m_tlsCertificate = std::forward<TlsCertificateT>(value); }
93 template<typename TlsCertificateT = Aws::String>
94 VpcConfiguration& WithTlsCertificate(TlsCertificateT&& value) { SetTlsCertificate(std::forward<TlsCertificateT>(value)); return *this;}
96 private:
97
98 Aws::String m_vpcId;
99 bool m_vpcIdHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_subnetIds;
102 bool m_subnetIdsHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_securityGroupIds;
105 bool m_securityGroupIdsHasBeenSet = false;
106
107 Aws::String m_tlsCertificate;
108 bool m_tlsCertificateHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CodeStarconnections
113} // 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