AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayPeeringAttachment.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/PeeringTgwInfo.h>
11#include <aws/ec2/model/TransitGatewayPeeringAttachmentOptions.h>
12#include <aws/ec2/model/PeeringAttachmentStatus.h>
13#include <aws/ec2/model/TransitGatewayAttachmentState.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/ec2/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace EC2
29{
30namespace Model
31{
32
40 {
41 public:
45
46 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
54 inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
55 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
56 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
57 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
58 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
63
65
68 inline const Aws::String& GetAccepterTransitGatewayAttachmentId() const{ return m_accepterTransitGatewayAttachmentId; }
69 inline bool AccepterTransitGatewayAttachmentIdHasBeenSet() const { return m_accepterTransitGatewayAttachmentIdHasBeenSet; }
70 inline void SetAccepterTransitGatewayAttachmentId(const Aws::String& value) { m_accepterTransitGatewayAttachmentIdHasBeenSet = true; m_accepterTransitGatewayAttachmentId = value; }
71 inline void SetAccepterTransitGatewayAttachmentId(Aws::String&& value) { m_accepterTransitGatewayAttachmentIdHasBeenSet = true; m_accepterTransitGatewayAttachmentId = std::move(value); }
72 inline void SetAccepterTransitGatewayAttachmentId(const char* value) { m_accepterTransitGatewayAttachmentIdHasBeenSet = true; m_accepterTransitGatewayAttachmentId.assign(value); }
77
79
82 inline const PeeringTgwInfo& GetRequesterTgwInfo() const{ return m_requesterTgwInfo; }
83 inline bool RequesterTgwInfoHasBeenSet() const { return m_requesterTgwInfoHasBeenSet; }
84 inline void SetRequesterTgwInfo(const PeeringTgwInfo& value) { m_requesterTgwInfoHasBeenSet = true; m_requesterTgwInfo = value; }
85 inline void SetRequesterTgwInfo(PeeringTgwInfo&& value) { m_requesterTgwInfoHasBeenSet = true; m_requesterTgwInfo = std::move(value); }
89
91
94 inline const PeeringTgwInfo& GetAccepterTgwInfo() const{ return m_accepterTgwInfo; }
95 inline bool AccepterTgwInfoHasBeenSet() const { return m_accepterTgwInfoHasBeenSet; }
96 inline void SetAccepterTgwInfo(const PeeringTgwInfo& value) { m_accepterTgwInfoHasBeenSet = true; m_accepterTgwInfo = value; }
97 inline void SetAccepterTgwInfo(PeeringTgwInfo&& value) { m_accepterTgwInfoHasBeenSet = true; m_accepterTgwInfo = std::move(value); }
99 inline TransitGatewayPeeringAttachment& WithAccepterTgwInfo(PeeringTgwInfo&& value) { SetAccepterTgwInfo(std::move(value)); return *this;}
101
103
106 inline const TransitGatewayPeeringAttachmentOptions& GetOptions() const{ return m_options; }
107 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
108 inline void SetOptions(const TransitGatewayPeeringAttachmentOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
109 inline void SetOptions(TransitGatewayPeeringAttachmentOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
113
115
118 inline const PeeringAttachmentStatus& GetStatus() const{ return m_status; }
119 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
120 inline void SetStatus(const PeeringAttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
121 inline void SetStatus(PeeringAttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
123 inline TransitGatewayPeeringAttachment& WithStatus(PeeringAttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
125
127
131 inline const TransitGatewayAttachmentState& GetState() const{ return m_state; }
132 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
133 inline void SetState(const TransitGatewayAttachmentState& value) { m_stateHasBeenSet = true; m_state = value; }
134 inline void SetState(TransitGatewayAttachmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
136 inline TransitGatewayPeeringAttachment& WithState(TransitGatewayAttachmentState&& value) { SetState(std::move(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
144 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
145 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
146 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
150
152
155 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
158 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
159 inline TransitGatewayPeeringAttachment& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
160 inline TransitGatewayPeeringAttachment& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
161 inline TransitGatewayPeeringAttachment& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
162 inline TransitGatewayPeeringAttachment& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
164 private:
165
166 Aws::String m_transitGatewayAttachmentId;
167 bool m_transitGatewayAttachmentIdHasBeenSet = false;
168
169 Aws::String m_accepterTransitGatewayAttachmentId;
170 bool m_accepterTransitGatewayAttachmentIdHasBeenSet = false;
171
172 PeeringTgwInfo m_requesterTgwInfo;
173 bool m_requesterTgwInfoHasBeenSet = false;
174
175 PeeringTgwInfo m_accepterTgwInfo;
176 bool m_accepterTgwInfoHasBeenSet = false;
177
179 bool m_optionsHasBeenSet = false;
180
182 bool m_statusHasBeenSet = false;
183
185 bool m_stateHasBeenSet = false;
186
187 Aws::Utils::DateTime m_creationTime;
188 bool m_creationTimeHasBeenSet = false;
189
190 Aws::Vector<Tag> m_tags;
191 bool m_tagsHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace EC2
196} // namespace Aws
void SetState(const TransitGatewayAttachmentState &value)
TransitGatewayPeeringAttachment & WithAccepterTgwInfo(PeeringTgwInfo &&value)
TransitGatewayPeeringAttachment & WithState(const TransitGatewayAttachmentState &value)
TransitGatewayPeeringAttachment & WithState(TransitGatewayAttachmentState &&value)
void SetOptions(TransitGatewayPeeringAttachmentOptions &&value)
TransitGatewayPeeringAttachment & WithAccepterTransitGatewayAttachmentId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayPeeringAttachment & WithRequesterTgwInfo(const PeeringTgwInfo &value)
TransitGatewayPeeringAttachment & WithTags(const Aws::Vector< Tag > &value)
const TransitGatewayPeeringAttachmentOptions & GetOptions() const
TransitGatewayPeeringAttachment & WithTransitGatewayAttachmentId(Aws::String &&value)
TransitGatewayPeeringAttachment & AddTags(const Tag &value)
TransitGatewayPeeringAttachment & WithCreationTime(Aws::Utils::DateTime &&value)
TransitGatewayPeeringAttachment & WithStatus(const PeeringAttachmentStatus &value)
void SetOptions(const TransitGatewayPeeringAttachmentOptions &value)
AWS_EC2_API TransitGatewayPeeringAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayPeeringAttachment & WithAccepterTransitGatewayAttachmentId(Aws::String &&value)
TransitGatewayPeeringAttachment & WithAccepterTgwInfo(const PeeringTgwInfo &value)
TransitGatewayPeeringAttachment & WithStatus(PeeringAttachmentStatus &&value)
TransitGatewayPeeringAttachment & WithTags(Aws::Vector< Tag > &&value)
TransitGatewayPeeringAttachment & WithOptions(const TransitGatewayPeeringAttachmentOptions &value)
TransitGatewayPeeringAttachment & WithAccepterTransitGatewayAttachmentId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayPeeringAttachment & AddTags(Tag &&value)
TransitGatewayPeeringAttachment & WithOptions(TransitGatewayPeeringAttachmentOptions &&value)
const TransitGatewayAttachmentState & GetState() const
TransitGatewayPeeringAttachment & WithRequesterTgwInfo(PeeringTgwInfo &&value)
TransitGatewayPeeringAttachment & WithTransitGatewayAttachmentId(const Aws::String &value)
AWS_EC2_API TransitGatewayPeeringAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayPeeringAttachment & WithCreationTime(const Aws::Utils::DateTime &value)
TransitGatewayPeeringAttachment & WithTransitGatewayAttachmentId(const char *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