AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayVpcAttachment.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/TransitGatewayAttachmentState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/TransitGatewayVpcAttachmentOptions.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:
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& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
52 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
53 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
54 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
55 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
60
62
65 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
66 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
67 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
68 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
69 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
71 inline TransitGatewayVpcAttachment& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
72 inline TransitGatewayVpcAttachment& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
74
76
79 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
80 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
81 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
82 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
83 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
84 inline TransitGatewayVpcAttachment& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
85 inline TransitGatewayVpcAttachment& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
86 inline TransitGatewayVpcAttachment& WithVpcId(const char* value) { SetVpcId(value); return *this;}
88
90
93 inline const Aws::String& GetVpcOwnerId() const{ return m_vpcOwnerId; }
94 inline bool VpcOwnerIdHasBeenSet() const { return m_vpcOwnerIdHasBeenSet; }
95 inline void SetVpcOwnerId(const Aws::String& value) { m_vpcOwnerIdHasBeenSet = true; m_vpcOwnerId = value; }
96 inline void SetVpcOwnerId(Aws::String&& value) { m_vpcOwnerIdHasBeenSet = true; m_vpcOwnerId = std::move(value); }
97 inline void SetVpcOwnerId(const char* value) { m_vpcOwnerIdHasBeenSet = true; m_vpcOwnerId.assign(value); }
98 inline TransitGatewayVpcAttachment& WithVpcOwnerId(const Aws::String& value) { SetVpcOwnerId(value); return *this;}
99 inline TransitGatewayVpcAttachment& WithVpcOwnerId(Aws::String&& value) { SetVpcOwnerId(std::move(value)); return *this;}
100 inline TransitGatewayVpcAttachment& WithVpcOwnerId(const char* value) { SetVpcOwnerId(value); return *this;}
102
104
108 inline const TransitGatewayAttachmentState& GetState() const{ return m_state; }
109 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
110 inline void SetState(const TransitGatewayAttachmentState& value) { m_stateHasBeenSet = true; m_state = value; }
111 inline void SetState(TransitGatewayAttachmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
113 inline TransitGatewayVpcAttachment& WithState(TransitGatewayAttachmentState&& value) { SetState(std::move(value)); return *this;}
115
117
120 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
121 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
122 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
123 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
125 inline TransitGatewayVpcAttachment& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
126 inline TransitGatewayVpcAttachment& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
127 inline TransitGatewayVpcAttachment& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
128 inline TransitGatewayVpcAttachment& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
130
132
135 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
136 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
137 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
138 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
140 inline TransitGatewayVpcAttachment& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
142
144
147 inline const TransitGatewayVpcAttachmentOptions& GetOptions() const{ return m_options; }
148 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
149 inline void SetOptions(const TransitGatewayVpcAttachmentOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
150 inline void SetOptions(TransitGatewayVpcAttachmentOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
154
156
159 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
162 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
163 inline TransitGatewayVpcAttachment& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
164 inline TransitGatewayVpcAttachment& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
165 inline TransitGatewayVpcAttachment& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
166 inline TransitGatewayVpcAttachment& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
168 private:
169
170 Aws::String m_transitGatewayAttachmentId;
171 bool m_transitGatewayAttachmentIdHasBeenSet = false;
172
173 Aws::String m_transitGatewayId;
174 bool m_transitGatewayIdHasBeenSet = false;
175
176 Aws::String m_vpcId;
177 bool m_vpcIdHasBeenSet = false;
178
179 Aws::String m_vpcOwnerId;
180 bool m_vpcOwnerIdHasBeenSet = false;
181
183 bool m_stateHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_subnetIds;
186 bool m_subnetIdsHasBeenSet = false;
187
188 Aws::Utils::DateTime m_creationTime;
189 bool m_creationTimeHasBeenSet = false;
190
192 bool m_optionsHasBeenSet = false;
193
194 Aws::Vector<Tag> m_tags;
195 bool m_tagsHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace EC2
200} // namespace Aws
void SetCreationTime(const Aws::Utils::DateTime &value)
TransitGatewayVpcAttachment & WithTransitGatewayId(Aws::String &&value)
TransitGatewayVpcAttachment & AddTags(Tag &&value)
TransitGatewayVpcAttachment & WithCreationTime(const Aws::Utils::DateTime &value)
TransitGatewayVpcAttachment & WithVpcId(Aws::String &&value)
TransitGatewayVpcAttachment & AddSubnetIds(Aws::String &&value)
TransitGatewayVpcAttachment & AddSubnetIds(const char *value)
TransitGatewayVpcAttachment & WithTransitGatewayAttachmentId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
TransitGatewayVpcAttachment & AddTags(const Tag &value)
TransitGatewayVpcAttachment & AddSubnetIds(const Aws::String &value)
TransitGatewayVpcAttachment & WithOptions(const TransitGatewayVpcAttachmentOptions &value)
TransitGatewayVpcAttachment & WithTags(Aws::Vector< Tag > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
TransitGatewayVpcAttachment & WithTransitGatewayId(const char *value)
TransitGatewayVpcAttachment & WithCreationTime(Aws::Utils::DateTime &&value)
void SetState(TransitGatewayAttachmentState &&value)
TransitGatewayVpcAttachment & WithVpcOwnerId(Aws::String &&value)
TransitGatewayVpcAttachment & WithVpcId(const char *value)
TransitGatewayVpcAttachment & WithVpcId(const Aws::String &value)
TransitGatewayVpcAttachment & WithState(TransitGatewayAttachmentState &&value)
void SetState(const TransitGatewayAttachmentState &value)
AWS_EC2_API TransitGatewayVpcAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayVpcAttachment & WithTransitGatewayAttachmentId(const char *value)
void SetOptions(TransitGatewayVpcAttachmentOptions &&value)
TransitGatewayVpcAttachment & WithVpcOwnerId(const char *value)
TransitGatewayVpcAttachment & WithTransitGatewayAttachmentId(Aws::String &&value)
TransitGatewayVpcAttachment & WithOptions(TransitGatewayVpcAttachmentOptions &&value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
const TransitGatewayAttachmentState & GetState() const
TransitGatewayVpcAttachment & WithSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Utils::DateTime & GetCreationTime() const
const TransitGatewayVpcAttachmentOptions & GetOptions() const
AWS_EC2_API TransitGatewayVpcAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayVpcAttachment & WithTags(const Aws::Vector< Tag > &value)
TransitGatewayVpcAttachment & WithState(const TransitGatewayAttachmentState &value)
TransitGatewayVpcAttachment & WithVpcOwnerId(const Aws::String &value)
TransitGatewayVpcAttachment & WithTransitGatewayId(const Aws::String &value)
void SetOptions(const TransitGatewayVpcAttachmentOptions &value)
TransitGatewayVpcAttachment & WithSubnetIds(Aws::Vector< 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