AWS SDK for C++

AWS SDK for C++ Version 1.11.857

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
60 inline const Aws::String& GetTransitGatewayPolicyTableId() const { return m_transitGatewayPolicyTableId; }
61 inline bool TransitGatewayPolicyTableIdHasBeenSet() const { return m_transitGatewayPolicyTableIdHasBeenSet; }
62 template <typename TransitGatewayPolicyTableIdT = Aws::String>
63 void SetTransitGatewayPolicyTableId(TransitGatewayPolicyTableIdT&& value) {
64 m_transitGatewayPolicyTableIdHasBeenSet = true;
65 m_transitGatewayPolicyTableId = std::forward<TransitGatewayPolicyTableIdT>(value);
66 }
67 template <typename TransitGatewayPolicyTableIdT = Aws::String>
69 SetTransitGatewayPolicyTableId(std::forward<TransitGatewayPolicyTableIdT>(value));
70 return *this;
71 }
73
75
78 inline TransitGatewayAssociationState GetState() const { return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 m_stateHasBeenSet = true;
82 m_state = value;
83 }
85 SetState(value);
86 return *this;
87 }
89 private:
90 Aws::String m_transitGatewayRouteTableId;
91
92 Aws::String m_transitGatewayPolicyTableId;
93
95 bool m_transitGatewayRouteTableIdHasBeenSet = false;
96 bool m_transitGatewayPolicyTableIdHasBeenSet = false;
97 bool m_stateHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace EC2
102} // namespace Aws
void SetTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTransitGatewayPolicyTableId(TransitGatewayPolicyTableIdT &&value)
TransitGatewayAttachmentAssociation & WithTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
TransitGatewayAttachmentAssociation & WithTransitGatewayPolicyTableId(TransitGatewayPolicyTableIdT &&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