AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcConfiguration.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_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 CodeConnections
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CODECONNECTIONS_API VpcConfiguration();
36 AWS_CODECONNECTIONS_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECONNECTIONS_API VpcConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECONNECTIONS_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 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
49 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
50 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
51 inline VpcConfiguration& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
52 inline VpcConfiguration& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
53 inline VpcConfiguration& WithVpcId(const char* value) { SetVpcId(value); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
62 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
63 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
64 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
65 inline VpcConfiguration& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
66 inline VpcConfiguration& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
67 inline VpcConfiguration& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
68 inline VpcConfiguration& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
69 inline VpcConfiguration& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
71
73
77 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
78 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
79 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
80 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
82 inline VpcConfiguration& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
83 inline VpcConfiguration& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
84 inline VpcConfiguration& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
85 inline VpcConfiguration& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
87
89
93 inline const Aws::String& GetTlsCertificate() const{ return m_tlsCertificate; }
94 inline bool TlsCertificateHasBeenSet() const { return m_tlsCertificateHasBeenSet; }
95 inline void SetTlsCertificate(const Aws::String& value) { m_tlsCertificateHasBeenSet = true; m_tlsCertificate = value; }
96 inline void SetTlsCertificate(Aws::String&& value) { m_tlsCertificateHasBeenSet = true; m_tlsCertificate = std::move(value); }
97 inline void SetTlsCertificate(const char* value) { m_tlsCertificateHasBeenSet = true; m_tlsCertificate.assign(value); }
98 inline VpcConfiguration& WithTlsCertificate(const Aws::String& value) { SetTlsCertificate(value); return *this;}
99 inline VpcConfiguration& WithTlsCertificate(Aws::String&& value) { SetTlsCertificate(std::move(value)); return *this;}
100 inline VpcConfiguration& WithTlsCertificate(const char* value) { SetTlsCertificate(value); return *this;}
102 private:
103
104 Aws::String m_vpcId;
105 bool m_vpcIdHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_subnetIds;
108 bool m_subnetIdsHasBeenSet = false;
109
110 Aws::Vector<Aws::String> m_securityGroupIds;
111 bool m_securityGroupIdsHasBeenSet = false;
112
113 Aws::String m_tlsCertificate;
114 bool m_tlsCertificateHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace CodeConnections
119} // namespace Aws
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
VpcConfiguration & WithTlsCertificate(const Aws::String &value)
VpcConfiguration & WithTlsCertificate(Aws::String &&value)
VpcConfiguration & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
VpcConfiguration & WithSubnetIds(const Aws::Vector< Aws::String > &value)
VpcConfiguration & AddSecurityGroupIds(const char *value)
AWS_CODECONNECTIONS_API VpcConfiguration()
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcConfiguration & AddSecurityGroupIds(const Aws::String &value)
VpcConfiguration & WithVpcId(Aws::String &&value)
VpcConfiguration & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
VpcConfiguration & AddSecurityGroupIds(Aws::String &&value)
VpcConfiguration & AddSubnetIds(const char *value)
AWS_CODECONNECTIONS_API VpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfiguration & AddSubnetIds(Aws::String &&value)
void SetTlsCertificate(const Aws::String &value)
VpcConfiguration & WithSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConfiguration & WithVpcId(const char *value)
AWS_CODECONNECTIONS_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
VpcConfiguration & WithVpcId(const Aws::String &value)
VpcConfiguration & AddSubnetIds(const Aws::String &value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
VpcConfiguration & WithTlsCertificate(const char *value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue