AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayAttachmentAssociation.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/TransitGatewayAssociationState.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
29 public:
30 AWS_EC2_API TransitGatewayAttachmentAssociation() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetTransitGatewayRouteTableId() const { return m_transitGatewayRouteTableId; }
42 inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
43 template <typename TransitGatewayRouteTableIdT = Aws::String>
44 void SetTransitGatewayRouteTableId(TransitGatewayRouteTableIdT&& value) {
45 m_transitGatewayRouteTableIdHasBeenSet = true;
46 m_transitGatewayRouteTableId = std::forward<TransitGatewayRouteTableIdT>(value);
47 }
48 template <typename TransitGatewayRouteTableIdT = Aws::String>
50 SetTransitGatewayRouteTableId(std::forward<TransitGatewayRouteTableIdT>(value));
51 return *this;
52 }
54
56
59 inline TransitGatewayAssociationState GetState() const { return m_state; }
60 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 m_stateHasBeenSet = true;
63 m_state = value;
64 }
66 SetState(value);
67 return *this;
68 }
70 private:
71 Aws::String m_transitGatewayRouteTableId;
72
74 bool m_transitGatewayRouteTableIdHasBeenSet = false;
75 bool m_stateHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
void SetTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayAttachmentAssociation & WithTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
TransitGatewayAttachmentAssociation & WithState(TransitGatewayAssociationState value)
AWS_EC2_API TransitGatewayAttachmentAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API TransitGatewayAttachmentAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream