AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayConnect.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/DateTime.h>
12#include <aws/ec2/model/TransitGatewayConnectOptions.h>
13#include <aws/core/utils/memory/stl/AWSVector.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:
39 AWS_EC2_API TransitGatewayConnect();
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& GetTransportTransitGatewayAttachmentId() const{ return m_transportTransitGatewayAttachmentId; }
66 inline bool TransportTransitGatewayAttachmentIdHasBeenSet() const { return m_transportTransitGatewayAttachmentIdHasBeenSet; }
67 inline void SetTransportTransitGatewayAttachmentId(const Aws::String& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = value; }
68 inline void SetTransportTransitGatewayAttachmentId(Aws::String&& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = std::move(value); }
69 inline void SetTransportTransitGatewayAttachmentId(const char* value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId.assign(value); }
74
76
79 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
80 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
81 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
82 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
83 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
84 inline TransitGatewayConnect& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
85 inline TransitGatewayConnect& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
86 inline TransitGatewayConnect& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
88
90
93 inline const TransitGatewayAttachmentState& GetState() const{ return m_state; }
94 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
95 inline void SetState(const TransitGatewayAttachmentState& value) { m_stateHasBeenSet = true; m_state = value; }
96 inline void SetState(TransitGatewayAttachmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
97 inline TransitGatewayConnect& WithState(const TransitGatewayAttachmentState& value) { SetState(value); return *this;}
98 inline TransitGatewayConnect& WithState(TransitGatewayAttachmentState&& value) { SetState(std::move(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
106 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
107 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
108 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
109 inline TransitGatewayConnect& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
110 inline TransitGatewayConnect& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
112
114
117 inline const TransitGatewayConnectOptions& GetOptions() const{ return m_options; }
118 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
119 inline void SetOptions(const TransitGatewayConnectOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
120 inline void SetOptions(TransitGatewayConnectOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
121 inline TransitGatewayConnect& WithOptions(const TransitGatewayConnectOptions& value) { SetOptions(value); return *this;}
122 inline TransitGatewayConnect& WithOptions(TransitGatewayConnectOptions&& value) { SetOptions(std::move(value)); return *this;}
124
126
129 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
132 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
133 inline TransitGatewayConnect& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
134 inline TransitGatewayConnect& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
135 inline TransitGatewayConnect& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
136 inline TransitGatewayConnect& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
138 private:
139
140 Aws::String m_transitGatewayAttachmentId;
141 bool m_transitGatewayAttachmentIdHasBeenSet = false;
142
143 Aws::String m_transportTransitGatewayAttachmentId;
144 bool m_transportTransitGatewayAttachmentIdHasBeenSet = false;
145
146 Aws::String m_transitGatewayId;
147 bool m_transitGatewayIdHasBeenSet = false;
148
150 bool m_stateHasBeenSet = false;
151
152 Aws::Utils::DateTime m_creationTime;
153 bool m_creationTimeHasBeenSet = false;
154
156 bool m_optionsHasBeenSet = false;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_tagsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace EC2
164} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
TransitGatewayConnect & WithState(const TransitGatewayAttachmentState &value)
void SetTransportTransitGatewayAttachmentId(const Aws::String &value)
const Aws::String & GetTransportTransitGatewayAttachmentId() const
void SetTransportTransitGatewayAttachmentId(const char *value)
AWS_EC2_API TransitGatewayConnect(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetTransitGatewayId() const
void SetTransitGatewayAttachmentId(const Aws::String &value)
TransitGatewayConnect & WithCreationTime(Aws::Utils::DateTime &&value)
TransitGatewayConnect & WithTransitGatewayAttachmentId(Aws::String &&value)
const Aws::String & GetTransitGatewayAttachmentId() const
void SetOptions(const TransitGatewayConnectOptions &value)
void SetOptions(TransitGatewayConnectOptions &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayConnect & WithTransportTransitGatewayAttachmentId(Aws::String &&value)
TransitGatewayConnect & WithOptions(TransitGatewayConnectOptions &&value)
TransitGatewayConnect & WithCreationTime(const Aws::Utils::DateTime &value)
TransitGatewayConnect & WithTransitGatewayAttachmentId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTime() const
TransitGatewayConnect & WithTags(Aws::Vector< Tag > &&value)
TransitGatewayConnect & WithTags(const Aws::Vector< Tag > &value)
void SetState(const TransitGatewayAttachmentState &value)
TransitGatewayConnect & WithOptions(const TransitGatewayConnectOptions &value)
void SetTransitGatewayAttachmentId(const char *value)
TransitGatewayConnect & AddTags(const Tag &value)
TransitGatewayConnect & WithTransitGatewayId(Aws::String &&value)
const TransitGatewayAttachmentState & GetState() const
TransitGatewayConnect & WithTransitGatewayId(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
TransitGatewayConnect & WithTransportTransitGatewayAttachmentId(const Aws::String &value)
TransitGatewayConnect & AddTags(Tag &&value)
TransitGatewayConnect & WithTransitGatewayId(const Aws::String &value)
AWS_EC2_API TransitGatewayConnect & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTransportTransitGatewayAttachmentId(Aws::String &&value)
void SetTransitGatewayId(const Aws::String &value)
void SetState(TransitGatewayAttachmentState &&value)
void SetTags(Aws::Vector< Tag > &&value)
const TransitGatewayConnectOptions & GetOptions() const
TransitGatewayConnect & WithState(TransitGatewayAttachmentState &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
TransitGatewayConnect & WithTransportTransitGatewayAttachmentId(const char *value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetTransitGatewayAttachmentId(Aws::String &&value)
TransitGatewayConnect & WithTransitGatewayAttachmentId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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