AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayRouteTableRoute.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API TransitGatewayRouteTableRoute() = 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& GetDestinationCidr() const { return m_destinationCidr; }
42 inline bool DestinationCidrHasBeenSet() const { return m_destinationCidrHasBeenSet; }
43 template <typename DestinationCidrT = Aws::String>
44 void SetDestinationCidr(DestinationCidrT&& value) {
45 m_destinationCidrHasBeenSet = true;
46 m_destinationCidr = std::forward<DestinationCidrT>(value);
47 }
48 template <typename DestinationCidrT = Aws::String>
50 SetDestinationCidr(std::forward<DestinationCidrT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetState() const { return m_state; }
60 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
61 template <typename StateT = Aws::String>
62 void SetState(StateT&& value) {
63 m_stateHasBeenSet = true;
64 m_state = std::forward<StateT>(value);
65 }
66 template <typename StateT = Aws::String>
68 SetState(std::forward<StateT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetRouteOrigin() const { return m_routeOrigin; }
79 inline bool RouteOriginHasBeenSet() const { return m_routeOriginHasBeenSet; }
80 template <typename RouteOriginT = Aws::String>
81 void SetRouteOrigin(RouteOriginT&& value) {
82 m_routeOriginHasBeenSet = true;
83 m_routeOrigin = std::forward<RouteOriginT>(value);
84 }
85 template <typename RouteOriginT = Aws::String>
87 SetRouteOrigin(std::forward<RouteOriginT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
97 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
98 template <typename PrefixListIdT = Aws::String>
99 void SetPrefixListId(PrefixListIdT&& value) {
100 m_prefixListIdHasBeenSet = true;
101 m_prefixListId = std::forward<PrefixListIdT>(value);
102 }
103 template <typename PrefixListIdT = Aws::String>
105 SetPrefixListId(std::forward<PrefixListIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
115 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
116 template <typename AttachmentIdT = Aws::String>
117 void SetAttachmentId(AttachmentIdT&& value) {
118 m_attachmentIdHasBeenSet = true;
119 m_attachmentId = std::forward<AttachmentIdT>(value);
120 }
121 template <typename AttachmentIdT = Aws::String>
123 SetAttachmentId(std::forward<AttachmentIdT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetResourceId() const { return m_resourceId; }
133 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
134 template <typename ResourceIdT = Aws::String>
135 void SetResourceId(ResourceIdT&& value) {
136 m_resourceIdHasBeenSet = true;
137 m_resourceId = std::forward<ResourceIdT>(value);
138 }
139 template <typename ResourceIdT = Aws::String>
141 SetResourceId(std::forward<ResourceIdT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetResourceType() const { return m_resourceType; }
151 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
152 template <typename ResourceTypeT = Aws::String>
153 void SetResourceType(ResourceTypeT&& value) {
154 m_resourceTypeHasBeenSet = true;
155 m_resourceType = std::forward<ResourceTypeT>(value);
156 }
157 template <typename ResourceTypeT = Aws::String>
159 SetResourceType(std::forward<ResourceTypeT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_destinationCidr;
165
166 Aws::String m_state;
167
168 Aws::String m_routeOrigin;
169
170 Aws::String m_prefixListId;
171
172 Aws::String m_attachmentId;
173
174 Aws::String m_resourceId;
175
176 Aws::String m_resourceType;
177 bool m_destinationCidrHasBeenSet = false;
178 bool m_stateHasBeenSet = false;
179 bool m_routeOriginHasBeenSet = false;
180 bool m_prefixListIdHasBeenSet = false;
181 bool m_attachmentIdHasBeenSet = false;
182 bool m_resourceIdHasBeenSet = false;
183 bool m_resourceTypeHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace EC2
188} // namespace Aws
TransitGatewayRouteTableRoute & WithResourceId(ResourceIdT &&value)
TransitGatewayRouteTableRoute & WithResourceType(ResourceTypeT &&value)
TransitGatewayRouteTableRoute & WithDestinationCidr(DestinationCidrT &&value)
TransitGatewayRouteTableRoute & WithPrefixListId(PrefixListIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TransitGatewayRouteTableRoute(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayRouteTableRoute & WithAttachmentId(AttachmentIdT &&value)
TransitGatewayRouteTableRoute & WithState(StateT &&value)
AWS_EC2_API TransitGatewayRouteTableRoute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayRouteTableRoute & WithRouteOrigin(RouteOriginT &&value)
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