AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayPolicyTableAssociation.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 TransitGatewayPolicyTableAssociation() = 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& GetTransitGatewayPolicyTableId() const { return m_transitGatewayPolicyTableId; }
44 inline bool TransitGatewayPolicyTableIdHasBeenSet() const { return m_transitGatewayPolicyTableIdHasBeenSet; }
45 template <typename TransitGatewayPolicyTableIdT = Aws::String>
46 void SetTransitGatewayPolicyTableId(TransitGatewayPolicyTableIdT&& value) {
47 m_transitGatewayPolicyTableIdHasBeenSet = true;
48 m_transitGatewayPolicyTableId = std::forward<TransitGatewayPolicyTableIdT>(value);
49 }
50 template <typename TransitGatewayPolicyTableIdT = Aws::String>
52 SetTransitGatewayPolicyTableId(std::forward<TransitGatewayPolicyTableIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
62 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
63 template <typename TransitGatewayAttachmentIdT = Aws::String>
64 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
65 m_transitGatewayAttachmentIdHasBeenSet = true;
66 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
67 }
68 template <typename TransitGatewayAttachmentIdT = Aws::String>
70 SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetResourceId() const { return m_resourceId; }
80 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
81 template <typename ResourceIdT = Aws::String>
82 void SetResourceId(ResourceIdT&& value) {
83 m_resourceIdHasBeenSet = true;
84 m_resourceId = std::forward<ResourceIdT>(value);
85 }
86 template <typename ResourceIdT = Aws::String>
88 SetResourceId(std::forward<ResourceIdT>(value));
89 return *this;
90 }
92
94
97 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
98 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
100 m_resourceTypeHasBeenSet = true;
101 m_resourceType = value;
102 }
104 SetResourceType(value);
105 return *this;
106 }
108
110
113 inline TransitGatewayAssociationState GetState() const { return m_state; }
114 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
116 m_stateHasBeenSet = true;
117 m_state = value;
118 }
120 SetState(value);
121 return *this;
122 }
124 private:
125 Aws::String m_transitGatewayPolicyTableId;
126
127 Aws::String m_transitGatewayAttachmentId;
128
129 Aws::String m_resourceId;
130
132
134 bool m_transitGatewayPolicyTableIdHasBeenSet = false;
135 bool m_transitGatewayAttachmentIdHasBeenSet = false;
136 bool m_resourceIdHasBeenSet = false;
137 bool m_resourceTypeHasBeenSet = false;
138 bool m_stateHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace EC2
143} // namespace Aws
AWS_EC2_API TransitGatewayPolicyTableAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayPolicyTableAssociation & WithResourceId(ResourceIdT &&value)
void SetTransitGatewayPolicyTableId(TransitGatewayPolicyTableIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TransitGatewayPolicyTableAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayPolicyTableAssociation & WithTransitGatewayPolicyTableId(TransitGatewayPolicyTableIdT &&value)
TransitGatewayPolicyTableAssociation & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayPolicyTableAssociation & WithState(TransitGatewayAssociationState value)
TransitGatewayPolicyTableAssociation & WithResourceType(TransitGatewayAttachmentResourceType value)
void SetResourceType(TransitGatewayAttachmentResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream