AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGateway.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/ec2/model/TransitGatewayState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/TransitGatewayOptions.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API TransitGateway();
40 AWS_EC2_API TransitGateway(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& GetTransitGatewayId() const{ return m_transitGatewayId; }
52 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
53 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
54 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
55 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
56 inline TransitGateway& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
57 inline TransitGateway& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
58 inline TransitGateway& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
60
62
65 inline const Aws::String& GetTransitGatewayArn() const{ return m_transitGatewayArn; }
66 inline bool TransitGatewayArnHasBeenSet() const { return m_transitGatewayArnHasBeenSet; }
67 inline void SetTransitGatewayArn(const Aws::String& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = value; }
68 inline void SetTransitGatewayArn(Aws::String&& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = std::move(value); }
69 inline void SetTransitGatewayArn(const char* value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn.assign(value); }
70 inline TransitGateway& WithTransitGatewayArn(const Aws::String& value) { SetTransitGatewayArn(value); return *this;}
71 inline TransitGateway& WithTransitGatewayArn(Aws::String&& value) { SetTransitGatewayArn(std::move(value)); return *this;}
72 inline TransitGateway& WithTransitGatewayArn(const char* value) { SetTransitGatewayArn(value); return *this;}
74
76
79 inline const TransitGatewayState& GetState() const{ return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(const TransitGatewayState& value) { m_stateHasBeenSet = true; m_state = value; }
82 inline void SetState(TransitGatewayState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
83 inline TransitGateway& WithState(const TransitGatewayState& value) { SetState(value); return *this;}
84 inline TransitGateway& WithState(TransitGatewayState&& value) { SetState(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
92 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
93 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
94 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
95 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
96 inline TransitGateway& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
97 inline TransitGateway& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
98 inline TransitGateway& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
100
102
105 inline const Aws::String& GetDescription() const{ return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
108 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
109 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 inline TransitGateway& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 inline TransitGateway& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 inline TransitGateway& WithDescription(const char* value) { SetDescription(value); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
120 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
121 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
122 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
123 inline TransitGateway& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
124 inline TransitGateway& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
126
128
131 inline const TransitGatewayOptions& GetOptions() const{ return m_options; }
132 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
133 inline void SetOptions(const TransitGatewayOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
134 inline void SetOptions(TransitGatewayOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
135 inline TransitGateway& WithOptions(const TransitGatewayOptions& value) { SetOptions(value); return *this;}
136 inline TransitGateway& WithOptions(TransitGatewayOptions&& value) { SetOptions(std::move(value)); return *this;}
138
140
143 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
146 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
147 inline TransitGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
148 inline TransitGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
149 inline TransitGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
150 inline TransitGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
152 private:
153
154 Aws::String m_transitGatewayId;
155 bool m_transitGatewayIdHasBeenSet = false;
156
157 Aws::String m_transitGatewayArn;
158 bool m_transitGatewayArnHasBeenSet = false;
159
160 TransitGatewayState m_state;
161 bool m_stateHasBeenSet = false;
162
163 Aws::String m_ownerId;
164 bool m_ownerIdHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
169 Aws::Utils::DateTime m_creationTime;
170 bool m_creationTimeHasBeenSet = false;
171
172 TransitGatewayOptions m_options;
173 bool m_optionsHasBeenSet = false;
174
175 Aws::Vector<Tag> m_tags;
176 bool m_tagsHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace EC2
181} // namespace Aws
void SetOptions(TransitGatewayOptions &&value)
TransitGateway & WithOwnerId(const Aws::String &value)
TransitGateway & WithOwnerId(Aws::String &&value)
TransitGateway & WithDescription(const Aws::String &value)
TransitGateway & WithOptions(const TransitGatewayOptions &value)
const Aws::String & GetTransitGatewayArn() const
const TransitGatewayState & GetState() const
TransitGateway & WithState(const TransitGatewayState &value)
TransitGateway & WithTransitGatewayArn(Aws::String &&value)
TransitGateway & WithTransitGatewayArn(const Aws::String &value)
TransitGateway & WithCreationTime(Aws::Utils::DateTime &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetTransitGatewayArn(const Aws::String &value)
void SetTransitGatewayId(const Aws::String &value)
void SetState(const TransitGatewayState &value)
void SetOwnerId(const char *value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetDescription(const Aws::String &value)
const Aws::String & GetTransitGatewayId() const
void SetOwnerId(Aws::String &&value)
void SetOptions(const TransitGatewayOptions &value)
void SetState(TransitGatewayState &&value)
void SetTransitGatewayArn(const char *value)
TransitGateway & WithOptions(TransitGatewayOptions &&value)
TransitGateway & WithDescription(const char *value)
TransitGateway & WithState(TransitGatewayState &&value)
void SetDescription(const char *value)
TransitGateway & AddTags(const Tag &value)
TransitGateway & WithCreationTime(const Aws::Utils::DateTime &value)
AWS_EC2_API TransitGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOwnerId(const Aws::String &value)
TransitGateway & WithTags(Aws::Vector< Tag > &&value)
void SetTransitGatewayId(Aws::String &&value)
TransitGateway & WithDescription(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
TransitGateway & WithTransitGatewayArn(const char *value)
TransitGateway & WithOwnerId(const char *value)
TransitGateway & WithTags(const Aws::Vector< Tag > &value)
TransitGateway & WithTransitGatewayId(Aws::String &&value)
AWS_EC2_API TransitGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetOwnerId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGateway & WithTransitGatewayId(const Aws::String &value)
TransitGateway & WithTransitGatewayId(const char *value)
void SetTransitGatewayId(const char *value)
const Aws::Vector< Tag > & GetTags() const
void SetTags(const Aws::Vector< Tag > &value)
TransitGateway & AddTags(Tag &&value)
const TransitGatewayOptions & GetOptions() const
const Aws::String & GetDescription() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTransitGatewayArn(Aws::String &&value)
void SetDescription(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