AWS SDK for C++  1.9.75
AWS SDK for C++
SubnetAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
48 
52  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
53 
57  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
58 
62  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
63 
67  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
68 
72  inline SubnetAssociation& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
73 
77  inline SubnetAssociation& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
78 
82  inline SubnetAssociation& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
83 
84 
88  inline const TransitGatewayMulitcastDomainAssociationState& GetState() const{ return m_state; }
89 
93  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
94 
98  inline void SetState(const TransitGatewayMulitcastDomainAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
99 
103  inline void SetState(TransitGatewayMulitcastDomainAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
104 
108  inline SubnetAssociation& WithState(const TransitGatewayMulitcastDomainAssociationState& value) { SetState(value); return *this;}
109 
113  inline SubnetAssociation& WithState(TransitGatewayMulitcastDomainAssociationState&& value) { SetState(std::move(value)); return *this;}
114 
115  private:
116 
117  Aws::String m_subnetId;
118  bool m_subnetIdHasBeenSet;
119 
121  bool m_stateHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::SubnetAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::SubnetAssociation::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: SubnetAssociation.h:52
Aws::EC2::Model::SubnetAssociation::SetState
void SetState(const TransitGatewayMulitcastDomainAssociationState &value)
Definition: SubnetAssociation.h:98
Aws::EC2::Model::SubnetAssociation::WithSubnetId
SubnetAssociation & WithSubnetId(const char *value)
Definition: SubnetAssociation.h:82
Aws::EC2::Model::SubnetAssociation::operator=
SubnetAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMulitcastDomainAssociationState.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SubnetAssociation::WithSubnetId
SubnetAssociation & WithSubnetId(Aws::String &&value)
Definition: SubnetAssociation.h:77
Aws::EC2::Model::SubnetAssociation
Definition: SubnetAssociation.h:34
Aws::EC2::Model::SubnetAssociation::SubnetAssociation
SubnetAssociation()
Aws::EC2::Model::SubnetAssociation::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: SubnetAssociation.h:62
AWSStreamFwd.h
Aws::EC2::Model::SubnetAssociation::WithState
SubnetAssociation & WithState(const TransitGatewayMulitcastDomainAssociationState &value)
Definition: SubnetAssociation.h:108
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SubnetAssociation::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: SubnetAssociation.h:47
Aws::EC2::Model::SubnetAssociation::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: SubnetAssociation.h:57
Aws::EC2::Model::TransitGatewayMulitcastDomainAssociationState
TransitGatewayMulitcastDomainAssociationState
Definition: TransitGatewayMulitcastDomainAssociationState.h:17
AWSString.h
Aws::EC2::Model::SubnetAssociation::WithState
SubnetAssociation & WithState(TransitGatewayMulitcastDomainAssociationState &&value)
Definition: SubnetAssociation.h:113
Aws::EC2::Model::SubnetAssociation::SetState
void SetState(TransitGatewayMulitcastDomainAssociationState &&value)
Definition: SubnetAssociation.h:103
Aws::EC2::Model::SubnetAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::SubnetAssociation::WithSubnetId
SubnetAssociation & WithSubnetId(const Aws::String &value)
Definition: SubnetAssociation.h:72
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SubnetAssociation::SetSubnetId
void SetSubnetId(const char *value)
Definition: SubnetAssociation.h:67
Aws::EC2::Model::SubnetAssociation::GetState
const TransitGatewayMulitcastDomainAssociationState & GetState() const
Definition: SubnetAssociation.h:88
Aws::EC2::Model::SubnetAssociation::SubnetAssociation
SubnetAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::SubnetAssociation::StateHasBeenSet
bool StateHasBeenSet() const
Definition: SubnetAssociation.h:93