AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayConnect.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/EC2_EXPORTS.h>
12#include <aws/ec2/model/Tag.h>
13#include <aws/ec2/model/TransitGatewayAttachmentState.h>
14#include <aws/ec2/model/TransitGatewayConnectOptions.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
33 public:
34 AWS_EC2_API TransitGatewayConnect() = default;
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
46 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
47 template <typename TransitGatewayAttachmentIdT = Aws::String>
48 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
49 m_transitGatewayAttachmentIdHasBeenSet = true;
50 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
51 }
52 template <typename TransitGatewayAttachmentIdT = Aws::String>
53 TransitGatewayConnect& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
54 SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetTransportTransitGatewayAttachmentId() const { return m_transportTransitGatewayAttachmentId; }
64 inline bool TransportTransitGatewayAttachmentIdHasBeenSet() const { return m_transportTransitGatewayAttachmentIdHasBeenSet; }
65 template <typename TransportTransitGatewayAttachmentIdT = Aws::String>
66 void SetTransportTransitGatewayAttachmentId(TransportTransitGatewayAttachmentIdT&& value) {
67 m_transportTransitGatewayAttachmentIdHasBeenSet = true;
68 m_transportTransitGatewayAttachmentId = std::forward<TransportTransitGatewayAttachmentIdT>(value);
69 }
70 template <typename TransportTransitGatewayAttachmentIdT = Aws::String>
71 TransitGatewayConnect& WithTransportTransitGatewayAttachmentId(TransportTransitGatewayAttachmentIdT&& value) {
72 SetTransportTransitGatewayAttachmentId(std::forward<TransportTransitGatewayAttachmentIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
82 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
83 template <typename TransitGatewayIdT = Aws::String>
84 void SetTransitGatewayId(TransitGatewayIdT&& value) {
85 m_transitGatewayIdHasBeenSet = true;
86 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
87 }
88 template <typename TransitGatewayIdT = Aws::String>
89 TransitGatewayConnect& WithTransitGatewayId(TransitGatewayIdT&& value) {
90 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
91 return *this;
92 }
94
96
99 inline TransitGatewayAttachmentState GetState() const { return m_state; }
100 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
102 m_stateHasBeenSet = true;
103 m_state = value;
104 }
106 SetState(value);
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
116 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
117 template <typename CreationTimeT = Aws::Utils::DateTime>
118 void SetCreationTime(CreationTimeT&& value) {
119 m_creationTimeHasBeenSet = true;
120 m_creationTime = std::forward<CreationTimeT>(value);
121 }
122 template <typename CreationTimeT = Aws::Utils::DateTime>
123 TransitGatewayConnect& WithCreationTime(CreationTimeT&& value) {
124 SetCreationTime(std::forward<CreationTimeT>(value));
125 return *this;
126 }
128
130
133 inline const TransitGatewayConnectOptions& GetOptions() const { return m_options; }
134 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
135 template <typename OptionsT = TransitGatewayConnectOptions>
136 void SetOptions(OptionsT&& value) {
137 m_optionsHasBeenSet = true;
138 m_options = std::forward<OptionsT>(value);
139 }
140 template <typename OptionsT = TransitGatewayConnectOptions>
142 SetOptions(std::forward<OptionsT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 template <typename TagsT = Aws::Vector<Tag>>
154 void SetTags(TagsT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags = std::forward<TagsT>(value);
157 }
158 template <typename TagsT = Aws::Vector<Tag>>
160 SetTags(std::forward<TagsT>(value));
161 return *this;
162 }
163 template <typename TagsT = Tag>
165 m_tagsHasBeenSet = true;
166 m_tags.emplace_back(std::forward<TagsT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_transitGatewayAttachmentId;
172
173 Aws::String m_transportTransitGatewayAttachmentId;
174
175 Aws::String m_transitGatewayId;
176
178
179 Aws::Utils::DateTime m_creationTime{};
180
181 TransitGatewayConnectOptions m_options;
182
183 Aws::Vector<Tag> m_tags;
184 bool m_transitGatewayAttachmentIdHasBeenSet = false;
185 bool m_transportTransitGatewayAttachmentIdHasBeenSet = false;
186 bool m_transitGatewayIdHasBeenSet = false;
187 bool m_stateHasBeenSet = false;
188 bool m_creationTimeHasBeenSet = false;
189 bool m_optionsHasBeenSet = false;
190 bool m_tagsHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace EC2
195} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
TransitGatewayConnect & WithTags(TagsT &&value)
TransitGatewayConnect & WithTransportTransitGatewayAttachmentId(TransportTransitGatewayAttachmentIdT &&value)
void SetState(TransitGatewayAttachmentState value)
const Aws::String & GetTransportTransitGatewayAttachmentId() const
AWS_EC2_API TransitGatewayConnect(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetTransitGatewayId() const
const Aws::String & GetTransitGatewayAttachmentId() const
TransitGatewayConnect & AddTags(TagsT &&value)
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTransportTransitGatewayAttachmentId(TransportTransitGatewayAttachmentIdT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
TransitGatewayConnect & WithCreationTime(CreationTimeT &&value)
AWS_EC2_API TransitGatewayConnect()=default
AWS_EC2_API TransitGatewayConnect & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayConnect & WithOptions(OptionsT &&value)
TransitGatewayAttachmentState GetState() const
TransitGatewayConnect & WithTransitGatewayId(TransitGatewayIdT &&value)
TransitGatewayConnect & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
const TransitGatewayConnectOptions & GetOptions() const
TransitGatewayConnect & WithState(TransitGatewayAttachmentState value)
void SetTransitGatewayId(TransitGatewayIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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