AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename TransitGatewayIdT = Aws::String>
54 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
55 template<typename TransitGatewayIdT = Aws::String>
56 TransitGateway& WithTransitGatewayId(TransitGatewayIdT&& value) { SetTransitGatewayId(std::forward<TransitGatewayIdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetTransitGatewayArn() const { return m_transitGatewayArn; }
64 inline bool TransitGatewayArnHasBeenSet() const { return m_transitGatewayArnHasBeenSet; }
65 template<typename TransitGatewayArnT = Aws::String>
66 void SetTransitGatewayArn(TransitGatewayArnT&& value) { m_transitGatewayArnHasBeenSet = true; m_transitGatewayArn = std::forward<TransitGatewayArnT>(value); }
67 template<typename TransitGatewayArnT = Aws::String>
68 TransitGateway& WithTransitGatewayArn(TransitGatewayArnT&& value) { SetTransitGatewayArn(std::forward<TransitGatewayArnT>(value)); return *this;}
70
72
75 inline TransitGatewayState GetState() const { return m_state; }
76 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
77 inline void SetState(TransitGatewayState value) { m_stateHasBeenSet = true; m_state = value; }
78 inline TransitGateway& WithState(TransitGatewayState value) { SetState(value); return *this;}
80
82
85 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
86 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
87 template<typename OwnerIdT = Aws::String>
88 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
89 template<typename OwnerIdT = Aws::String>
90 TransitGateway& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template<typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
101 template<typename DescriptionT = Aws::String>
102 TransitGateway& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
110 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
111 template<typename CreationTimeT = Aws::Utils::DateTime>
112 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
113 template<typename CreationTimeT = Aws::Utils::DateTime>
114 TransitGateway& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
116
118
121 inline const TransitGatewayOptions& GetOptions() const { return m_options; }
122 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
123 template<typename OptionsT = TransitGatewayOptions>
124 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
125 template<typename OptionsT = TransitGatewayOptions>
126 TransitGateway& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
128
130
133 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template<typename TagsT = Aws::Vector<Tag>>
136 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
137 template<typename TagsT = Aws::Vector<Tag>>
138 TransitGateway& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
139 template<typename TagsT = Tag>
140 TransitGateway& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
142 private:
143
144 Aws::String m_transitGatewayId;
145 bool m_transitGatewayIdHasBeenSet = false;
146
147 Aws::String m_transitGatewayArn;
148 bool m_transitGatewayArnHasBeenSet = false;
149
151 bool m_stateHasBeenSet = false;
152
153 Aws::String m_ownerId;
154 bool m_ownerIdHasBeenSet = false;
155
156 Aws::String m_description;
157 bool m_descriptionHasBeenSet = false;
158
159 Aws::Utils::DateTime m_creationTime{};
160 bool m_creationTimeHasBeenSet = false;
161
162 TransitGatewayOptions m_options;
163 bool m_optionsHasBeenSet = false;
164
165 Aws::Vector<Tag> m_tags;
166 bool m_tagsHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace EC2
171} // namespace Aws
TransitGateway & AddTags(TagsT &&value)
const Aws::String & GetTransitGatewayArn() const
TransitGateway & WithCreationTime(CreationTimeT &&value)
void SetTransitGatewayId(TransitGatewayIdT &&value)
void SetState(TransitGatewayState value)
const Aws::Utils::DateTime & GetCreationTime() const
TransitGateway & WithOptions(OptionsT &&value)
void SetTransitGatewayArn(TransitGatewayArnT &&value)
AWS_EC2_API TransitGateway()=default
TransitGateway & WithTransitGatewayArn(TransitGatewayArnT &&value)
TransitGateway & WithDescription(DescriptionT &&value)
const Aws::String & GetTransitGatewayId() const
TransitGatewayState GetState() const
void SetOwnerId(OwnerIdT &&value)
void SetOptions(OptionsT &&value)
AWS_EC2_API TransitGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API TransitGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetOwnerId() const
TransitGateway & WithTags(TagsT &&value)
void SetCreationTime(CreationTimeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGateway & WithState(TransitGatewayState value)
const Aws::Vector< Tag > & GetTags() const
const TransitGatewayOptions & GetOptions() const
TransitGateway & WithTransitGatewayId(TransitGatewayIdT &&value)
const Aws::String & GetDescription() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGateway & WithOwnerId(OwnerIdT &&value)
void SetDescription(DescriptionT &&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