AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetNetwork.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/AssociationStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API TargetNetwork();
38 AWS_EC2_API TargetNetwork(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_EC2_API TargetNetwork& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
50 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
51 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
52 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
53 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
54 inline TargetNetwork& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
55 inline TargetNetwork& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
56 inline TargetNetwork& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
58
60
63 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
64 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
65 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
66 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
67 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
68 inline TargetNetwork& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
69 inline TargetNetwork& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
70 inline TargetNetwork& WithVpcId(const char* value) { SetVpcId(value); return *this;}
72
74
77 inline const Aws::String& GetTargetNetworkId() const{ return m_targetNetworkId; }
78 inline bool TargetNetworkIdHasBeenSet() const { return m_targetNetworkIdHasBeenSet; }
79 inline void SetTargetNetworkId(const Aws::String& value) { m_targetNetworkIdHasBeenSet = true; m_targetNetworkId = value; }
80 inline void SetTargetNetworkId(Aws::String&& value) { m_targetNetworkIdHasBeenSet = true; m_targetNetworkId = std::move(value); }
81 inline void SetTargetNetworkId(const char* value) { m_targetNetworkIdHasBeenSet = true; m_targetNetworkId.assign(value); }
82 inline TargetNetwork& WithTargetNetworkId(const Aws::String& value) { SetTargetNetworkId(value); return *this;}
83 inline TargetNetwork& WithTargetNetworkId(Aws::String&& value) { SetTargetNetworkId(std::move(value)); return *this;}
84 inline TargetNetwork& WithTargetNetworkId(const char* value) { SetTargetNetworkId(value); return *this;}
86
88
92 inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; }
93 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
94 inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
95 inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
96 inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
97 inline TargetNetwork& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;}
98 inline TargetNetwork& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;}
99 inline TargetNetwork& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
101
103
106 inline const AssociationStatus& GetStatus() const{ return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 inline void SetStatus(const AssociationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
109 inline void SetStatus(AssociationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
110 inline TargetNetwork& WithStatus(const AssociationStatus& value) { SetStatus(value); return *this;}
111 inline TargetNetwork& WithStatus(AssociationStatus&& value) { SetStatus(std::move(value)); return *this;}
113
115
118 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
119 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
120 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
121 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
122 inline TargetNetwork& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
123 inline TargetNetwork& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
124 inline TargetNetwork& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
125 inline TargetNetwork& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
126 inline TargetNetwork& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
128 private:
129
130 Aws::String m_associationId;
131 bool m_associationIdHasBeenSet = false;
132
133 Aws::String m_vpcId;
134 bool m_vpcIdHasBeenSet = false;
135
136 Aws::String m_targetNetworkId;
137 bool m_targetNetworkIdHasBeenSet = false;
138
139 Aws::String m_clientVpnEndpointId;
140 bool m_clientVpnEndpointIdHasBeenSet = false;
141
142 AssociationStatus m_status;
143 bool m_statusHasBeenSet = false;
144
145 Aws::Vector<Aws::String> m_securityGroups;
146 bool m_securityGroupsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
TargetNetwork & WithTargetNetworkId(const char *value)
TargetNetwork & WithAssociationId(const char *value)
TargetNetwork & WithAssociationId(const Aws::String &value)
void SetVpcId(const char *value)
TargetNetwork & AddSecurityGroups(const char *value)
TargetNetwork & WithStatus(const AssociationStatus &value)
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
TargetNetwork & WithVpcId(const char *value)
TargetNetwork & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
const Aws::String & GetClientVpnEndpointId() const
const Aws::String & GetVpcId() const
void SetAssociationId(Aws::String &&value)
void SetStatus(const AssociationStatus &value)
const Aws::String & GetTargetNetworkId() const
AWS_EC2_API TargetNetwork(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetNetwork & WithTargetNetworkId(const Aws::String &value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
TargetNetwork & WithVpcId(Aws::String &&value)
TargetNetwork & WithAssociationId(Aws::String &&value)
TargetNetwork & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
AWS_EC2_API TargetNetwork & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetNetwork & AddSecurityGroups(const Aws::String &value)
void SetClientVpnEndpointId(Aws::String &&value)
void SetClientVpnEndpointId(const char *value)
void SetVpcId(const Aws::String &value)
void SetTargetNetworkId(const Aws::String &value)
const Aws::String & GetAssociationId() const
void SetVpcId(Aws::String &&value)
TargetNetwork & WithVpcId(const Aws::String &value)
TargetNetwork & WithClientVpnEndpointId(const Aws::String &value)
const AssociationStatus & GetStatus() const
void SetAssociationId(const char *value)
void SetClientVpnEndpointId(const Aws::String &value)
TargetNetwork & AddSecurityGroups(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetNetwork & WithStatus(AssociationStatus &&value)
TargetNetwork & WithClientVpnEndpointId(Aws::String &&value)
void SetTargetNetworkId(Aws::String &&value)
void SetStatus(AssociationStatus &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
bool ClientVpnEndpointIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAssociationId(const Aws::String &value)
TargetNetwork & WithTargetNetworkId(Aws::String &&value)
void SetTargetNetworkId(const char *value)
TargetNetwork & WithClientVpnEndpointId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream