AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayRouteTableAssociation.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#include <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
31 public:
32 AWS_EC2_API TransitGatewayRouteTableAssociation() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
44 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
45 template <typename TransitGatewayAttachmentIdT = Aws::String>
46 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
47 m_transitGatewayAttachmentIdHasBeenSet = true;
48 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
49 }
50 template <typename TransitGatewayAttachmentIdT = Aws::String>
52 SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetResourceId() const { return m_resourceId; }
62 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
63 template <typename ResourceIdT = Aws::String>
64 void SetResourceId(ResourceIdT&& value) {
65 m_resourceIdHasBeenSet = true;
66 m_resourceId = std::forward<ResourceIdT>(value);
67 }
68 template <typename ResourceIdT = Aws::String>
70 SetResourceId(std::forward<ResourceIdT>(value));
71 return *this;
72 }
74
76
80 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
81 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
83 m_resourceTypeHasBeenSet = true;
84 m_resourceType = value;
85 }
87 SetResourceType(value);
88 return *this;
89 }
91
93
96 inline TransitGatewayAssociationState GetState() const { return m_state; }
97 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 m_stateHasBeenSet = true;
100 m_state = value;
101 }
103 SetState(value);
104 return *this;
105 }
107 private:
108 Aws::String m_transitGatewayAttachmentId;
109
110 Aws::String m_resourceId;
111
113
115 bool m_transitGatewayAttachmentIdHasBeenSet = false;
116 bool m_resourceIdHasBeenSet = false;
117 bool m_resourceTypeHasBeenSet = false;
118 bool m_stateHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace EC2
123} // namespace Aws
AWS_EC2_API TransitGatewayRouteTableAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceType(TransitGatewayAttachmentResourceType value)
TransitGatewayRouteTableAssociation & WithState(TransitGatewayAssociationState value)
TransitGatewayRouteTableAssociation & WithResourceType(TransitGatewayAttachmentResourceType value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
TransitGatewayRouteTableAssociation & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
TransitGatewayRouteTableAssociation & WithResourceId(ResourceIdT &&value)
AWS_EC2_API TransitGatewayRouteTableAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream