AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
41 AWS_EC2_API TransitGatewayAttachment() = default;
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 template<typename TransitGatewayAttachmentIdT = Aws::String>
56 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
57 template<typename TransitGatewayAttachmentIdT = Aws::String>
58 TransitGatewayAttachment& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
66 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
67 template<typename TransitGatewayIdT = Aws::String>
68 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
69 template<typename TransitGatewayIdT = Aws::String>
70 TransitGatewayAttachment& WithTransitGatewayId(TransitGatewayIdT&& value) { SetTransitGatewayId(std::forward<TransitGatewayIdT>(value)); return *this;}
72
74
77 inline const Aws::String& GetTransitGatewayOwnerId() const { return m_transitGatewayOwnerId; }
78 inline bool TransitGatewayOwnerIdHasBeenSet() const { return m_transitGatewayOwnerIdHasBeenSet; }
79 template<typename TransitGatewayOwnerIdT = Aws::String>
80 void SetTransitGatewayOwnerId(TransitGatewayOwnerIdT&& value) { m_transitGatewayOwnerIdHasBeenSet = true; m_transitGatewayOwnerId = std::forward<TransitGatewayOwnerIdT>(value); }
81 template<typename TransitGatewayOwnerIdT = Aws::String>
82 TransitGatewayAttachment& WithTransitGatewayOwnerId(TransitGatewayOwnerIdT&& value) { SetTransitGatewayOwnerId(std::forward<TransitGatewayOwnerIdT>(value)); return *this;}
84
86
89 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
90 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
91 template<typename ResourceOwnerIdT = Aws::String>
92 void SetResourceOwnerId(ResourceOwnerIdT&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value); }
93 template<typename ResourceOwnerIdT = Aws::String>
94 TransitGatewayAttachment& WithResourceOwnerId(ResourceOwnerIdT&& value) { SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value)); return *this;}
96
98
102 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
103 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
104 inline void SetResourceType(TransitGatewayAttachmentResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
107
109
112 inline const Aws::String& GetResourceId() const { return m_resourceId; }
113 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
114 template<typename ResourceIdT = Aws::String>
115 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
116 template<typename ResourceIdT = Aws::String>
117 TransitGatewayAttachment& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
119
121
125 inline TransitGatewayAttachmentState GetState() const { return m_state; }
126 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
127 inline void SetState(TransitGatewayAttachmentState value) { m_stateHasBeenSet = true; m_state = value; }
130
132
135 inline const TransitGatewayAttachmentAssociation& GetAssociation() const { return m_association; }
136 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
137 template<typename AssociationT = TransitGatewayAttachmentAssociation>
138 void SetAssociation(AssociationT&& value) { m_associationHasBeenSet = true; m_association = std::forward<AssociationT>(value); }
139 template<typename AssociationT = TransitGatewayAttachmentAssociation>
140 TransitGatewayAttachment& WithAssociation(AssociationT&& value) { SetAssociation(std::forward<AssociationT>(value)); return *this;}
142
144
147 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
148 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
149 template<typename CreationTimeT = Aws::Utils::DateTime>
150 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
151 template<typename CreationTimeT = Aws::Utils::DateTime>
152 TransitGatewayAttachment& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
154
156
159 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 template<typename TagsT = Aws::Vector<Tag>>
162 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
163 template<typename TagsT = Aws::Vector<Tag>>
164 TransitGatewayAttachment& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
165 template<typename TagsT = Tag>
166 TransitGatewayAttachment& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(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_transitGatewayOwnerId;
177 bool m_transitGatewayOwnerIdHasBeenSet = false;
178
179 Aws::String m_resourceOwnerId;
180 bool m_resourceOwnerIdHasBeenSet = false;
181
183 bool m_resourceTypeHasBeenSet = false;
184
185 Aws::String m_resourceId;
186 bool m_resourceIdHasBeenSet = false;
187
189 bool m_stateHasBeenSet = false;
190
191 TransitGatewayAttachmentAssociation m_association;
192 bool m_associationHasBeenSet = false;
193
194 Aws::Utils::DateTime m_creationTime{};
195 bool m_creationTimeHasBeenSet = false;
196
197 Aws::Vector<Tag> m_tags;
198 bool m_tagsHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace EC2
203} // namespace Aws
TransitGatewayAttachment & WithCreationTime(CreationTimeT &&value)
TransitGatewayAttachment & WithResourceOwnerId(ResourceOwnerIdT &&value)
TransitGatewayAttachment & WithAssociation(AssociationT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const TransitGatewayAttachmentAssociation & GetAssociation() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayAttachmentState GetState() const
void SetTransitGatewayOwnerId(TransitGatewayOwnerIdT &&value)
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
AWS_EC2_API TransitGatewayAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetTransitGatewayAttachmentId() const
AWS_EC2_API TransitGatewayAttachment()=default
TransitGatewayAttachment & WithResourceType(TransitGatewayAttachmentResourceType value)
void SetResourceType(TransitGatewayAttachmentResourceType value)
TransitGatewayAttachmentResourceType GetResourceType() const
TransitGatewayAttachment & WithTransitGatewayId(TransitGatewayIdT &&value)
TransitGatewayAttachment & WithTags(TagsT &&value)
TransitGatewayAttachment & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
TransitGatewayAttachment & WithResourceId(ResourceIdT &&value)
void SetTransitGatewayId(TransitGatewayIdT &&value)
void SetResourceOwnerId(ResourceOwnerIdT &&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 & AddTags(TagsT &&value)
void SetState(TransitGatewayAttachmentState value)
TransitGatewayAttachment & WithTransitGatewayOwnerId(TransitGatewayOwnerIdT &&value)
TransitGatewayAttachment & WithState(TransitGatewayAttachmentState 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