AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubnetAssociation.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/TransitGatewayMulitcastDomainAssociationState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API SubnetAssociation();
37 AWS_EC2_API SubnetAssociation(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
49 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
50 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
51 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
52 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
53 inline SubnetAssociation& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
54 inline SubnetAssociation& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
55 inline SubnetAssociation& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
57
59
62 inline const TransitGatewayMulitcastDomainAssociationState& GetState() const{ return m_state; }
63 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
64 inline void SetState(const TransitGatewayMulitcastDomainAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
65 inline void SetState(TransitGatewayMulitcastDomainAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
67 inline SubnetAssociation& WithState(TransitGatewayMulitcastDomainAssociationState&& value) { SetState(std::move(value)); return *this;}
69 private:
70
71 Aws::String m_subnetId;
72 bool m_subnetIdHasBeenSet = false;
73
75 bool m_stateHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
const TransitGatewayMulitcastDomainAssociationState & GetState() const
void SetSubnetId(Aws::String &&value)
AWS_EC2_API SubnetAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SubnetAssociation & WithSubnetId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SubnetAssociation & WithState(const TransitGatewayMulitcastDomainAssociationState &value)
void SetState(const TransitGatewayMulitcastDomainAssociationState &value)
AWS_EC2_API SubnetAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubnetId(const Aws::String &value)
SubnetAssociation & WithState(TransitGatewayMulitcastDomainAssociationState &&value)
void SetState(TransitGatewayMulitcastDomainAssociationState &&value)
SubnetAssociation & WithSubnetId(const Aws::String &value)
SubnetAssociation & WithSubnetId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSubnetId(const char *value)
const Aws::String & GetSubnetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream