AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayAttachment.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/TransitGatewayAttachmentResourceType.h>
11#include <aws/ec2/model/TransitGatewayAttachmentState.h>
12#include <aws/ec2/model/TransitGatewayAttachmentAssociation.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/ec2/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
31
39 {
40 public:
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
54 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
55 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
56 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
57 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
62
64
67 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
68 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
69 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
70 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
71 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
73 inline TransitGatewayAttachment& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
74 inline TransitGatewayAttachment& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
76
78
81 inline const Aws::String& GetTransitGatewayOwnerId() const{ return m_transitGatewayOwnerId; }
82 inline bool TransitGatewayOwnerIdHasBeenSet() const { return m_transitGatewayOwnerIdHasBeenSet; }
83 inline void SetTransitGatewayOwnerId(const Aws::String& value) { m_transitGatewayOwnerIdHasBeenSet = true; m_transitGatewayOwnerId = value; }
84 inline void SetTransitGatewayOwnerId(Aws::String&& value) { m_transitGatewayOwnerIdHasBeenSet = true; m_transitGatewayOwnerId = std::move(value); }
85 inline void SetTransitGatewayOwnerId(const char* value) { m_transitGatewayOwnerIdHasBeenSet = true; m_transitGatewayOwnerId.assign(value); }
88 inline TransitGatewayAttachment& WithTransitGatewayOwnerId(const char* value) { SetTransitGatewayOwnerId(value); return *this;}
90
92
95 inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; }
96 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
97 inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; }
98 inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); }
99 inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); }
100 inline TransitGatewayAttachment& WithResourceOwnerId(const Aws::String& value) { SetResourceOwnerId(value); return *this;}
101 inline TransitGatewayAttachment& WithResourceOwnerId(Aws::String&& value) { SetResourceOwnerId(std::move(value)); return *this;}
102 inline TransitGatewayAttachment& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;}
104
106
110 inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
111 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
112 inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
113 inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
117
119
122 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
123 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
124 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
125 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
126 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
127 inline TransitGatewayAttachment& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
128 inline TransitGatewayAttachment& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
129 inline TransitGatewayAttachment& WithResourceId(const char* value) { SetResourceId(value); return *this;}
131
133
137 inline const TransitGatewayAttachmentState& GetState() const{ return m_state; }
138 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
139 inline void SetState(const TransitGatewayAttachmentState& value) { m_stateHasBeenSet = true; m_state = value; }
140 inline void SetState(TransitGatewayAttachmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
141 inline TransitGatewayAttachment& WithState(const TransitGatewayAttachmentState& value) { SetState(value); return *this;}
142 inline TransitGatewayAttachment& WithState(TransitGatewayAttachmentState&& value) { SetState(std::move(value)); return *this;}
144
146
149 inline const TransitGatewayAttachmentAssociation& GetAssociation() const{ return m_association; }
150 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
151 inline void SetAssociation(const TransitGatewayAttachmentAssociation& value) { m_associationHasBeenSet = true; m_association = value; }
152 inline void SetAssociation(TransitGatewayAttachmentAssociation&& value) { m_associationHasBeenSet = true; m_association = std::move(value); }
156
158
161 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
162 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
163 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
164 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
166 inline TransitGatewayAttachment& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
168
170
173 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
176 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
177 inline TransitGatewayAttachment& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
178 inline TransitGatewayAttachment& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
179 inline TransitGatewayAttachment& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
180 inline TransitGatewayAttachment& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
182 private:
183
184 Aws::String m_transitGatewayAttachmentId;
185 bool m_transitGatewayAttachmentIdHasBeenSet = false;
186
187 Aws::String m_transitGatewayId;
188 bool m_transitGatewayIdHasBeenSet = false;
189
190 Aws::String m_transitGatewayOwnerId;
191 bool m_transitGatewayOwnerIdHasBeenSet = false;
192
193 Aws::String m_resourceOwnerId;
194 bool m_resourceOwnerIdHasBeenSet = false;
195
197 bool m_resourceTypeHasBeenSet = false;
198
199 Aws::String m_resourceId;
200 bool m_resourceIdHasBeenSet = false;
201
203 bool m_stateHasBeenSet = false;
204
206 bool m_associationHasBeenSet = false;
207
208 Aws::Utils::DateTime m_creationTime;
209 bool m_creationTimeHasBeenSet = false;
210
211 Aws::Vector<Tag> m_tags;
212 bool m_tagsHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace EC2
217} // namespace Aws
void SetState(TransitGatewayAttachmentState &&value)
TransitGatewayAttachment & WithResourceId(const Aws::String &value)
TransitGatewayAttachment & WithResourceOwnerId(const char *value)
TransitGatewayAttachment & WithResourceId(const char *value)
void SetResourceOwnerId(const Aws::String &value)
TransitGatewayAttachment & WithTransitGatewayOwnerId(Aws::String &&value)
TransitGatewayAttachment & WithResourceType(const TransitGatewayAttachmentResourceType &value)
TransitGatewayAttachment & WithTransitGatewayAttachmentId(const Aws::String &value)
const TransitGatewayAttachmentResourceType & GetResourceType() const
const Aws::Utils::DateTime & GetCreationTime() const
TransitGatewayAttachment & WithTransitGatewayOwnerId(const Aws::String &value)
TransitGatewayAttachment & WithTransitGatewayId(const char *value)
const TransitGatewayAttachmentAssociation & GetAssociation() const
void SetResourceType(const TransitGatewayAttachmentResourceType &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAssociation(TransitGatewayAttachmentAssociation &&value)
void SetState(const TransitGatewayAttachmentState &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_EC2_API TransitGatewayAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetTransitGatewayAttachmentId() const
void SetTransitGatewayOwnerId(const Aws::String &value)
TransitGatewayAttachment & WithTransitGatewayId(const Aws::String &value)
TransitGatewayAttachment & WithCreationTime(const Aws::Utils::DateTime &value)
TransitGatewayAttachment & WithState(TransitGatewayAttachmentState &&value)
TransitGatewayAttachment & WithResourceId(Aws::String &&value)
TransitGatewayAttachment & WithResourceOwnerId(Aws::String &&value)
TransitGatewayAttachment & WithTransitGatewayId(Aws::String &&value)
void SetTransitGatewayAttachmentId(const Aws::String &value)
const TransitGatewayAttachmentState & GetState() const
void SetResourceType(TransitGatewayAttachmentResourceType &&value)
TransitGatewayAttachment & WithTransitGatewayOwnerId(const char *value)
TransitGatewayAttachment & AddTags(const Tag &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
TransitGatewayAttachment & WithTags(const Aws::Vector< Tag > &value)
TransitGatewayAttachment & WithTags(Aws::Vector< Tag > &&value)
void SetAssociation(const TransitGatewayAttachmentAssociation &value)
TransitGatewayAttachment & WithState(const TransitGatewayAttachmentState &value)
TransitGatewayAttachment & WithResourceType(TransitGatewayAttachmentResourceType &&value)
TransitGatewayAttachment & WithAssociation(const TransitGatewayAttachmentAssociation &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API TransitGatewayAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayAttachment & WithTransitGatewayAttachmentId(const char *value)
TransitGatewayAttachment & WithResourceOwnerId(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
TransitGatewayAttachment & WithTransitGatewayAttachmentId(Aws::String &&value)
TransitGatewayAttachment & WithCreationTime(Aws::Utils::DateTime &&value)
void SetTransitGatewayId(const Aws::String &value)
TransitGatewayAttachment & WithAssociation(TransitGatewayAttachmentAssociation &&value)
TransitGatewayAttachment & AddTags(Tag &&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