AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayRoute.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TransitGatewayRouteType.h>
12#include <aws/ec2/model/TransitGatewayRouteState.h>
13#include <aws/ec2/model/TransitGatewayRouteAttachment.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_EC2_API TransitGatewayRoute();
40 AWS_EC2_API TransitGatewayRoute(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
52 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
53 inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
54 inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
55 inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
57 inline TransitGatewayRoute& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
58 inline TransitGatewayRoute& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
60
62
65 inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
66 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
67 inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
68 inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
69 inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
70 inline TransitGatewayRoute& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
71 inline TransitGatewayRoute& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
72 inline TransitGatewayRoute& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
74
76
79 inline const Aws::String& GetTransitGatewayRouteTableAnnouncementId() const{ return m_transitGatewayRouteTableAnnouncementId; }
80 inline bool TransitGatewayRouteTableAnnouncementIdHasBeenSet() const { return m_transitGatewayRouteTableAnnouncementIdHasBeenSet; }
81 inline void SetTransitGatewayRouteTableAnnouncementId(const Aws::String& value) { m_transitGatewayRouteTableAnnouncementIdHasBeenSet = true; m_transitGatewayRouteTableAnnouncementId = value; }
82 inline void SetTransitGatewayRouteTableAnnouncementId(Aws::String&& value) { m_transitGatewayRouteTableAnnouncementIdHasBeenSet = true; m_transitGatewayRouteTableAnnouncementId = std::move(value); }
83 inline void SetTransitGatewayRouteTableAnnouncementId(const char* value) { m_transitGatewayRouteTableAnnouncementIdHasBeenSet = true; m_transitGatewayRouteTableAnnouncementId.assign(value); }
88
90
93 inline const Aws::Vector<TransitGatewayRouteAttachment>& GetTransitGatewayAttachments() const{ return m_transitGatewayAttachments; }
94 inline bool TransitGatewayAttachmentsHasBeenSet() const { return m_transitGatewayAttachmentsHasBeenSet; }
95 inline void SetTransitGatewayAttachments(const Aws::Vector<TransitGatewayRouteAttachment>& value) { m_transitGatewayAttachmentsHasBeenSet = true; m_transitGatewayAttachments = value; }
96 inline void SetTransitGatewayAttachments(Aws::Vector<TransitGatewayRouteAttachment>&& value) { m_transitGatewayAttachmentsHasBeenSet = true; m_transitGatewayAttachments = std::move(value); }
99 inline TransitGatewayRoute& AddTransitGatewayAttachments(const TransitGatewayRouteAttachment& value) { m_transitGatewayAttachmentsHasBeenSet = true; m_transitGatewayAttachments.push_back(value); return *this; }
100 inline TransitGatewayRoute& AddTransitGatewayAttachments(TransitGatewayRouteAttachment&& value) { m_transitGatewayAttachmentsHasBeenSet = true; m_transitGatewayAttachments.push_back(std::move(value)); return *this; }
102
104
107 inline const TransitGatewayRouteType& GetType() const{ return m_type; }
108 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
109 inline void SetType(const TransitGatewayRouteType& value) { m_typeHasBeenSet = true; m_type = value; }
110 inline void SetType(TransitGatewayRouteType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
111 inline TransitGatewayRoute& WithType(const TransitGatewayRouteType& value) { SetType(value); return *this;}
112 inline TransitGatewayRoute& WithType(TransitGatewayRouteType&& value) { SetType(std::move(value)); return *this;}
114
116
119 inline const TransitGatewayRouteState& GetState() const{ return m_state; }
120 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
121 inline void SetState(const TransitGatewayRouteState& value) { m_stateHasBeenSet = true; m_state = value; }
122 inline void SetState(TransitGatewayRouteState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
123 inline TransitGatewayRoute& WithState(const TransitGatewayRouteState& value) { SetState(value); return *this;}
124 inline TransitGatewayRoute& WithState(TransitGatewayRouteState&& value) { SetState(std::move(value)); return *this;}
126 private:
127
128 Aws::String m_destinationCidrBlock;
129 bool m_destinationCidrBlockHasBeenSet = false;
130
131 Aws::String m_prefixListId;
132 bool m_prefixListIdHasBeenSet = false;
133
134 Aws::String m_transitGatewayRouteTableAnnouncementId;
135 bool m_transitGatewayRouteTableAnnouncementIdHasBeenSet = false;
136
137 Aws::Vector<TransitGatewayRouteAttachment> m_transitGatewayAttachments;
138 bool m_transitGatewayAttachmentsHasBeenSet = false;
139
141 bool m_typeHasBeenSet = false;
142
144 bool m_stateHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace EC2
149} // namespace Aws
AWS_EC2_API TransitGatewayRoute(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayRoute & WithDestinationCidrBlock(const Aws::String &value)
AWS_EC2_API TransitGatewayRoute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDestinationCidrBlock(Aws::String &&value)
TransitGatewayRoute & WithPrefixListId(const Aws::String &value)
void SetDestinationCidrBlock(const char *value)
TransitGatewayRoute & WithState(TransitGatewayRouteState &&value)
void SetState(TransitGatewayRouteState &&value)
TransitGatewayRoute & WithType(TransitGatewayRouteType &&value)
void SetTransitGatewayAttachments(const Aws::Vector< TransitGatewayRouteAttachment > &value)
TransitGatewayRoute & AddTransitGatewayAttachments(TransitGatewayRouteAttachment &&value)
TransitGatewayRoute & WithTransitGatewayAttachments(const Aws::Vector< TransitGatewayRouteAttachment > &value)
void SetTransitGatewayAttachments(Aws::Vector< TransitGatewayRouteAttachment > &&value)
TransitGatewayRoute & WithTransitGatewayAttachments(Aws::Vector< TransitGatewayRouteAttachment > &&value)
TransitGatewayRoute & WithType(const TransitGatewayRouteType &value)
const Aws::Vector< TransitGatewayRouteAttachment > & GetTransitGatewayAttachments() const
TransitGatewayRoute & WithDestinationCidrBlock(const char *value)
void SetState(const TransitGatewayRouteState &value)
TransitGatewayRoute & WithPrefixListId(Aws::String &&value)
TransitGatewayRoute & AddTransitGatewayAttachments(const TransitGatewayRouteAttachment &value)
TransitGatewayRoute & WithTransitGatewayRouteTableAnnouncementId(Aws::String &&value)
TransitGatewayRoute & WithTransitGatewayRouteTableAnnouncementId(const char *value)
void SetPrefixListId(Aws::String &&value)
const Aws::String & GetTransitGatewayRouteTableAnnouncementId() const
TransitGatewayRoute & WithTransitGatewayRouteTableAnnouncementId(const Aws::String &value)
const Aws::String & GetPrefixListId() const
void SetType(TransitGatewayRouteType &&value)
const Aws::String & GetDestinationCidrBlock() const
TransitGatewayRoute & WithState(const TransitGatewayRouteState &value)
void SetTransitGatewayRouteTableAnnouncementId(Aws::String &&value)
const TransitGatewayRouteState & GetState() const
void SetPrefixListId(const Aws::String &value)
TransitGatewayRoute & WithPrefixListId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTransitGatewayRouteTableAnnouncementId(const char *value)
void SetDestinationCidrBlock(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayRoute & WithDestinationCidrBlock(Aws::String &&value)
void SetType(const TransitGatewayRouteType &value)
const TransitGatewayRouteType & GetType() const
void SetTransitGatewayRouteTableAnnouncementId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream