AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayRouteTableRoute.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetDestinationCidr() const{ return m_destinationCidr; }
48 inline bool DestinationCidrHasBeenSet() const { return m_destinationCidrHasBeenSet; }
49 inline void SetDestinationCidr(const Aws::String& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = value; }
50 inline void SetDestinationCidr(Aws::String&& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = std::move(value); }
51 inline void SetDestinationCidr(const char* value) { m_destinationCidrHasBeenSet = true; m_destinationCidr.assign(value); }
53 inline TransitGatewayRouteTableRoute& WithDestinationCidr(Aws::String&& value) { SetDestinationCidr(std::move(value)); return *this;}
54 inline TransitGatewayRouteTableRoute& WithDestinationCidr(const char* value) { SetDestinationCidr(value); return *this;}
56
58
61 inline const Aws::String& GetState() const{ return m_state; }
62 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
63 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
64 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
65 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
66 inline TransitGatewayRouteTableRoute& WithState(const Aws::String& value) { SetState(value); return *this;}
67 inline TransitGatewayRouteTableRoute& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
68 inline TransitGatewayRouteTableRoute& WithState(const char* value) { SetState(value); return *this;}
70
72
76 inline const Aws::String& GetRouteOrigin() const{ return m_routeOrigin; }
77 inline bool RouteOriginHasBeenSet() const { return m_routeOriginHasBeenSet; }
78 inline void SetRouteOrigin(const Aws::String& value) { m_routeOriginHasBeenSet = true; m_routeOrigin = value; }
79 inline void SetRouteOrigin(Aws::String&& value) { m_routeOriginHasBeenSet = true; m_routeOrigin = std::move(value); }
80 inline void SetRouteOrigin(const char* value) { m_routeOriginHasBeenSet = true; m_routeOrigin.assign(value); }
81 inline TransitGatewayRouteTableRoute& WithRouteOrigin(const Aws::String& value) { SetRouteOrigin(value); return *this;}
82 inline TransitGatewayRouteTableRoute& WithRouteOrigin(Aws::String&& value) { SetRouteOrigin(std::move(value)); return *this;}
83 inline TransitGatewayRouteTableRoute& WithRouteOrigin(const char* value) { SetRouteOrigin(value); return *this;}
85
87
90 inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
91 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
92 inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
93 inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
94 inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
95 inline TransitGatewayRouteTableRoute& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
96 inline TransitGatewayRouteTableRoute& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
97 inline TransitGatewayRouteTableRoute& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
99
101
104 inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; }
105 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
106 inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
107 inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); }
108 inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); }
109 inline TransitGatewayRouteTableRoute& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;}
110 inline TransitGatewayRouteTableRoute& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
111 inline TransitGatewayRouteTableRoute& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;}
113
115
118 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
119 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
120 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
121 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
122 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
123 inline TransitGatewayRouteTableRoute& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
124 inline TransitGatewayRouteTableRoute& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
125 inline TransitGatewayRouteTableRoute& WithResourceId(const char* value) { SetResourceId(value); return *this;}
127
129
132 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
133 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
134 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
135 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
136 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
137 inline TransitGatewayRouteTableRoute& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
138 inline TransitGatewayRouteTableRoute& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
139 inline TransitGatewayRouteTableRoute& WithResourceType(const char* value) { SetResourceType(value); return *this;}
141 private:
142
143 Aws::String m_destinationCidr;
144 bool m_destinationCidrHasBeenSet = false;
145
146 Aws::String m_state;
147 bool m_stateHasBeenSet = false;
148
149 Aws::String m_routeOrigin;
150 bool m_routeOriginHasBeenSet = false;
151
152 Aws::String m_prefixListId;
153 bool m_prefixListIdHasBeenSet = false;
154
155 Aws::String m_attachmentId;
156 bool m_attachmentIdHasBeenSet = false;
157
158 Aws::String m_resourceId;
159 bool m_resourceIdHasBeenSet = false;
160
161 Aws::String m_resourceType;
162 bool m_resourceTypeHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace EC2
167} // namespace Aws
TransitGatewayRouteTableRoute & WithResourceId(const Aws::String &value)
TransitGatewayRouteTableRoute & WithPrefixListId(const Aws::String &value)
TransitGatewayRouteTableRoute & WithAttachmentId(const char *value)
TransitGatewayRouteTableRoute & WithResourceType(const Aws::String &value)
TransitGatewayRouteTableRoute & WithRouteOrigin(const Aws::String &value)
TransitGatewayRouteTableRoute & WithResourceId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TransitGatewayRouteTableRoute(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayRouteTableRoute & WithDestinationCidr(const Aws::String &value)
TransitGatewayRouteTableRoute & WithPrefixListId(Aws::String &&value)
TransitGatewayRouteTableRoute & WithState(Aws::String &&value)
TransitGatewayRouteTableRoute & WithPrefixListId(const char *value)
TransitGatewayRouteTableRoute & WithDestinationCidr(const char *value)
TransitGatewayRouteTableRoute & WithState(const char *value)
TransitGatewayRouteTableRoute & WithRouteOrigin(const char *value)
TransitGatewayRouteTableRoute & WithResourceType(const char *value)
AWS_EC2_API TransitGatewayRouteTableRoute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayRouteTableRoute & WithResourceType(Aws::String &&value)
TransitGatewayRouteTableRoute & WithState(const Aws::String &value)
TransitGatewayRouteTableRoute & WithAttachmentId(const Aws::String &value)
TransitGatewayRouteTableRoute & WithResourceId(const char *value)
TransitGatewayRouteTableRoute & WithRouteOrigin(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayRouteTableRoute & WithAttachmentId(Aws::String &&value)
TransitGatewayRouteTableRoute & WithDestinationCidr(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream