AWS SDK for C++  1.9.67
AWS SDK for C++
TransitGatewayConnectPeer.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
14 #include <aws/ec2/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
30 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
50  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
51 
55  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
56 
60  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
61 
65  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
66 
70  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
71 
75  inline TransitGatewayConnectPeer& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
76 
80  inline TransitGatewayConnectPeer& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
81 
85  inline TransitGatewayConnectPeer& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
86 
87 
91  inline const Aws::String& GetTransitGatewayConnectPeerId() const{ return m_transitGatewayConnectPeerId; }
92 
96  inline bool TransitGatewayConnectPeerIdHasBeenSet() const { return m_transitGatewayConnectPeerIdHasBeenSet; }
97 
101  inline void SetTransitGatewayConnectPeerId(const Aws::String& value) { m_transitGatewayConnectPeerIdHasBeenSet = true; m_transitGatewayConnectPeerId = value; }
102 
106  inline void SetTransitGatewayConnectPeerId(Aws::String&& value) { m_transitGatewayConnectPeerIdHasBeenSet = true; m_transitGatewayConnectPeerId = std::move(value); }
107 
111  inline void SetTransitGatewayConnectPeerId(const char* value) { m_transitGatewayConnectPeerIdHasBeenSet = true; m_transitGatewayConnectPeerId.assign(value); }
112 
116  inline TransitGatewayConnectPeer& WithTransitGatewayConnectPeerId(const Aws::String& value) { SetTransitGatewayConnectPeerId(value); return *this;}
117 
121  inline TransitGatewayConnectPeer& WithTransitGatewayConnectPeerId(Aws::String&& value) { SetTransitGatewayConnectPeerId(std::move(value)); return *this;}
122 
126  inline TransitGatewayConnectPeer& WithTransitGatewayConnectPeerId(const char* value) { SetTransitGatewayConnectPeerId(value); return *this;}
127 
128 
132  inline const TransitGatewayConnectPeerState& GetState() const{ return m_state; }
133 
137  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
138 
142  inline void SetState(const TransitGatewayConnectPeerState& value) { m_stateHasBeenSet = true; m_state = value; }
143 
147  inline void SetState(TransitGatewayConnectPeerState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
148 
152  inline TransitGatewayConnectPeer& WithState(const TransitGatewayConnectPeerState& value) { SetState(value); return *this;}
153 
157  inline TransitGatewayConnectPeer& WithState(TransitGatewayConnectPeerState&& value) { SetState(std::move(value)); return *this;}
158 
159 
163  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
164 
168  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
169 
173  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
174 
178  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
179 
183  inline TransitGatewayConnectPeer& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
184 
188  inline TransitGatewayConnectPeer& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
189 
190 
194  inline const TransitGatewayConnectPeerConfiguration& GetConnectPeerConfiguration() const{ return m_connectPeerConfiguration; }
195 
199  inline bool ConnectPeerConfigurationHasBeenSet() const { return m_connectPeerConfigurationHasBeenSet; }
200 
204  inline void SetConnectPeerConfiguration(const TransitGatewayConnectPeerConfiguration& value) { m_connectPeerConfigurationHasBeenSet = true; m_connectPeerConfiguration = value; }
205 
209  inline void SetConnectPeerConfiguration(TransitGatewayConnectPeerConfiguration&& value) { m_connectPeerConfigurationHasBeenSet = true; m_connectPeerConfiguration = std::move(value); }
210 
214  inline TransitGatewayConnectPeer& WithConnectPeerConfiguration(const TransitGatewayConnectPeerConfiguration& value) { SetConnectPeerConfiguration(value); return *this;}
215 
219  inline TransitGatewayConnectPeer& WithConnectPeerConfiguration(TransitGatewayConnectPeerConfiguration&& value) { SetConnectPeerConfiguration(std::move(value)); return *this;}
220 
221 
225  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
226 
230  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
231 
235  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
236 
240  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
241 
245  inline TransitGatewayConnectPeer& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
246 
250  inline TransitGatewayConnectPeer& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
251 
255  inline TransitGatewayConnectPeer& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
256 
260  inline TransitGatewayConnectPeer& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
261 
262  private:
263 
264  Aws::String m_transitGatewayAttachmentId;
265  bool m_transitGatewayAttachmentIdHasBeenSet;
266 
267  Aws::String m_transitGatewayConnectPeerId;
268  bool m_transitGatewayConnectPeerIdHasBeenSet;
269 
271  bool m_stateHasBeenSet;
272 
273  Aws::Utils::DateTime m_creationTime;
274  bool m_creationTimeHasBeenSet;
275 
276  TransitGatewayConnectPeerConfiguration m_connectPeerConfiguration;
277  bool m_connectPeerConfigurationHasBeenSet;
278 
279  Aws::Vector<Tag> m_tags;
280  bool m_tagsHasBeenSet;
281  };
282 
283 } // namespace Model
284 } // namespace EC2
285 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::TransitGatewayConnectPeer::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: TransitGatewayConnectPeer.h:168
Aws::EC2::Model::TransitGatewayConnectPeer::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: TransitGatewayConnectPeer.h:50
Aws::EC2::Model::TransitGatewayConnectPeer::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayConnectPeer::WithCreationTime
TransitGatewayConnectPeer & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: TransitGatewayConnectPeer.h:183
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::TransitGatewayConnectPeer::WithState
TransitGatewayConnectPeer & WithState(const TransitGatewayConnectPeerState &value)
Definition: TransitGatewayConnectPeer.h:152
Aws::EC2::Model::TransitGatewayConnectPeer::SetConnectPeerConfiguration
void SetConnectPeerConfiguration(const TransitGatewayConnectPeerConfiguration &value)
Definition: TransitGatewayConnectPeer.h:204
Aws::EC2::Model::TransitGatewayConnectPeer::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: TransitGatewayConnectPeer.h:163
Aws::EC2::Model::TransitGatewayConnectPeer::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: TransitGatewayConnectPeer.h:55
Aws::EC2::Model::TransitGatewayConnectPeer::WithTransitGatewayAttachmentId
TransitGatewayConnectPeer & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayConnectPeer.h:80
Aws::EC2::Model::TransitGatewayConnectPeer::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TransitGatewayConnectPeer.h:137
DateTime.h
Aws::EC2::Model::TransitGatewayConnectPeer::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: TransitGatewayConnectPeer.h:235
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayConnectPeer::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: TransitGatewayConnectPeer.h:178
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::TransitGatewayConnectPeer::WithCreationTime
TransitGatewayConnectPeer & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: TransitGatewayConnectPeer.h:188
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::EC2::Model::TransitGatewayConnectPeer::GetTransitGatewayConnectPeerId
const Aws::String & GetTransitGatewayConnectPeerId() const
Definition: TransitGatewayConnectPeer.h:91
Aws::EC2::Model::TransitGatewayConnectPeer::TransitGatewayConnectPeer
TransitGatewayConnectPeer(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayConnectPeer::WithTags
TransitGatewayConnectPeer & WithTags(Aws::Vector< Tag > &&value)
Definition: TransitGatewayConnectPeer.h:250
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayConnectPeer::WithTransitGatewayConnectPeerId
TransitGatewayConnectPeer & WithTransitGatewayConnectPeerId(const Aws::String &value)
Definition: TransitGatewayConnectPeer.h:116
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayConnectPeerState
TransitGatewayConnectPeerState
Definition: TransitGatewayConnectPeerState.h:17
TransitGatewayConnectPeerState.h
Aws::EC2::Model::TransitGatewayConnectPeer::WithState
TransitGatewayConnectPeer & WithState(TransitGatewayConnectPeerState &&value)
Definition: TransitGatewayConnectPeer.h:157
Aws::EC2::Model::TransitGatewayConnectPeer::TransitGatewayConnectPeerIdHasBeenSet
bool TransitGatewayConnectPeerIdHasBeenSet() const
Definition: TransitGatewayConnectPeer.h:96
Aws::EC2::Model::TransitGatewayConnectPeer::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayConnectPeer.h:60
Aws::EC2::Model::TransitGatewayConnectPeer::SetTransitGatewayConnectPeerId
void SetTransitGatewayConnectPeerId(const char *value)
Definition: TransitGatewayConnectPeer.h:111
Aws::EC2::Model::TransitGatewayConnectPeer::WithTags
TransitGatewayConnectPeer & WithTags(const Aws::Vector< Tag > &value)
Definition: TransitGatewayConnectPeer.h:245
Aws::EC2::Model::TransitGatewayConnectPeer::WithTransitGatewayConnectPeerId
TransitGatewayConnectPeer & WithTransitGatewayConnectPeerId(Aws::String &&value)
Definition: TransitGatewayConnectPeer.h:121
Aws::EC2::Model::TransitGatewayConnectPeer::SetTransitGatewayConnectPeerId
void SetTransitGatewayConnectPeerId(const Aws::String &value)
Definition: TransitGatewayConnectPeer.h:101
AWSString.h
Aws::EC2::Model::TransitGatewayConnectPeer::WithTransitGatewayAttachmentId
TransitGatewayConnectPeer & WithTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayConnectPeer.h:85
Aws::EC2::Model::TransitGatewayConnectPeer::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayConnectPeer.h:70
Aws::EC2::Model::TransitGatewayConnectPeer::WithTransitGatewayAttachmentId
TransitGatewayConnectPeer & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayConnectPeer.h:75
Aws::EC2::Model::TransitGatewayConnectPeer::WithConnectPeerConfiguration
TransitGatewayConnectPeer & WithConnectPeerConfiguration(const TransitGatewayConnectPeerConfiguration &value)
Definition: TransitGatewayConnectPeer.h:214
Aws::EC2::Model::TransitGatewayConnectPeer::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayConnectPeerConfiguration.h
Aws::EC2::Model::TransitGatewayConnectPeer::SetState
void SetState(const TransitGatewayConnectPeerState &value)
Definition: TransitGatewayConnectPeer.h:142
Aws::EC2::Model::TransitGatewayConnectPeer::GetState
const TransitGatewayConnectPeerState & GetState() const
Definition: TransitGatewayConnectPeer.h:132
Aws::EC2::Model::TransitGatewayConnectPeer::WithTransitGatewayConnectPeerId
TransitGatewayConnectPeer & WithTransitGatewayConnectPeerId(const char *value)
Definition: TransitGatewayConnectPeer.h:126
Aws::EC2::Model::TransitGatewayConnectPeer::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: TransitGatewayConnectPeer.h:225
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayConnectPeer::AddTags
TransitGatewayConnectPeer & AddTags(const Tag &value)
Definition: TransitGatewayConnectPeer.h:255
Aws::EC2::Model::TransitGatewayConnectPeer::SetConnectPeerConfiguration
void SetConnectPeerConfiguration(TransitGatewayConnectPeerConfiguration &&value)
Definition: TransitGatewayConnectPeer.h:209
Aws::EC2::Model::TransitGatewayConnectPeer::operator=
TransitGatewayConnectPeer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayConnectPeer::WithConnectPeerConfiguration
TransitGatewayConnectPeer & WithConnectPeerConfiguration(TransitGatewayConnectPeerConfiguration &&value)
Definition: TransitGatewayConnectPeer.h:219
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayConnectPeer::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: TransitGatewayConnectPeer.h:173
Aws::EC2::Model::TransitGatewayConnectPeer::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayConnectPeer.h:65
Aws::EC2::Model::TransitGatewayConnectPeer::SetState
void SetState(TransitGatewayConnectPeerState &&value)
Definition: TransitGatewayConnectPeer.h:147
Aws::EC2::Model::TransitGatewayConnectPeer::GetConnectPeerConfiguration
const TransitGatewayConnectPeerConfiguration & GetConnectPeerConfiguration() const
Definition: TransitGatewayConnectPeer.h:194
Aws::EC2::Model::TransitGatewayConnectPeer::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: TransitGatewayConnectPeer.h:240
Aws::EC2::Model::TransitGatewayConnectPeer::TransitGatewayConnectPeer
TransitGatewayConnectPeer()
Aws::EC2::Model::TransitGatewayConnectPeer::SetTransitGatewayConnectPeerId
void SetTransitGatewayConnectPeerId(Aws::String &&value)
Definition: TransitGatewayConnectPeer.h:106
Aws::EC2::Model::TransitGatewayConnectPeer::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TransitGatewayConnectPeer.h:230
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayConnectPeer::ConnectPeerConfigurationHasBeenSet
bool ConnectPeerConfigurationHasBeenSet() const
Definition: TransitGatewayConnectPeer.h:199
Aws::EC2::Model::TransitGatewayConnectPeer
Definition: TransitGatewayConnectPeer.h:37
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration
Definition: TransitGatewayConnectPeerConfiguration.h:35
Aws::EC2::Model::TransitGatewayConnectPeer::AddTags
TransitGatewayConnectPeer & AddTags(Tag &&value)
Definition: TransitGatewayConnectPeer.h:260