AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SubnetAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/TransitGatewayMulitcastDomainAssociationState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API SubnetAssociation() = default;
32 AWS_EC2_API SubnetAssociation(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
43 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
44 template <typename SubnetIdT = Aws::String>
45 void SetSubnetId(SubnetIdT&& value) {
46 m_subnetIdHasBeenSet = true;
47 m_subnetId = std::forward<SubnetIdT>(value);
48 }
49 template <typename SubnetIdT = Aws::String>
50 SubnetAssociation& WithSubnetId(SubnetIdT&& value) {
51 SetSubnetId(std::forward<SubnetIdT>(value));
52 return *this;
53 }
55
57
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
63 m_stateHasBeenSet = true;
64 m_state = value;
65 }
67 SetState(value);
68 return *this;
69 }
71 private:
72 Aws::String m_subnetId;
73
75 bool m_subnetIdHasBeenSet = false;
76 bool m_stateHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
AWS_EC2_API SubnetAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SubnetAssociation & WithState(TransitGatewayMulitcastDomainAssociationState value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayMulitcastDomainAssociationState GetState() const
AWS_EC2_API SubnetAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
SubnetAssociation & WithSubnetId(SubnetIdT &&value)
void SetSubnetId(SubnetIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSubnetId() const
void SetState(TransitGatewayMulitcastDomainAssociationState value)
AWS_EC2_API SubnetAssociation()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream