AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayConnectPeer.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/TransitGatewayConnectPeerState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/TransitGatewayConnectPeerConfiguration.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:
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& GetTransitGatewayConnectPeerId() const{ return m_transitGatewayConnectPeerId; }
66 inline bool TransitGatewayConnectPeerIdHasBeenSet() const { return m_transitGatewayConnectPeerIdHasBeenSet; }
67 inline void SetTransitGatewayConnectPeerId(const Aws::String& value) { m_transitGatewayConnectPeerIdHasBeenSet = true; m_transitGatewayConnectPeerId = value; }
68 inline void SetTransitGatewayConnectPeerId(Aws::String&& value) { m_transitGatewayConnectPeerIdHasBeenSet = true; m_transitGatewayConnectPeerId = std::move(value); }
69 inline void SetTransitGatewayConnectPeerId(const char* value) { m_transitGatewayConnectPeerIdHasBeenSet = true; m_transitGatewayConnectPeerId.assign(value); }
74
76
79 inline const TransitGatewayConnectPeerState& GetState() const{ return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(const TransitGatewayConnectPeerState& value) { m_stateHasBeenSet = true; m_state = value; }
82 inline void SetState(TransitGatewayConnectPeerState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
83 inline TransitGatewayConnectPeer& WithState(const TransitGatewayConnectPeerState& value) { SetState(value); return *this;}
84 inline TransitGatewayConnectPeer& WithState(TransitGatewayConnectPeerState&& value) { SetState(std::move(value)); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
92 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
93 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
94 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
96 inline TransitGatewayConnectPeer& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
98
100
103 inline const TransitGatewayConnectPeerConfiguration& GetConnectPeerConfiguration() const{ return m_connectPeerConfiguration; }
104 inline bool ConnectPeerConfigurationHasBeenSet() const { return m_connectPeerConfigurationHasBeenSet; }
105 inline void SetConnectPeerConfiguration(const TransitGatewayConnectPeerConfiguration& value) { m_connectPeerConfigurationHasBeenSet = true; m_connectPeerConfiguration = value; }
106 inline void SetConnectPeerConfiguration(TransitGatewayConnectPeerConfiguration&& value) { m_connectPeerConfigurationHasBeenSet = true; m_connectPeerConfiguration = std::move(value); }
110
112
115 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
118 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
119 inline TransitGatewayConnectPeer& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
120 inline TransitGatewayConnectPeer& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
121 inline TransitGatewayConnectPeer& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
122 inline TransitGatewayConnectPeer& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
124 private:
125
126 Aws::String m_transitGatewayAttachmentId;
127 bool m_transitGatewayAttachmentIdHasBeenSet = false;
128
129 Aws::String m_transitGatewayConnectPeerId;
130 bool m_transitGatewayConnectPeerIdHasBeenSet = false;
131
133 bool m_stateHasBeenSet = false;
134
135 Aws::Utils::DateTime m_creationTime;
136 bool m_creationTimeHasBeenSet = false;
137
138 TransitGatewayConnectPeerConfiguration m_connectPeerConfiguration;
139 bool m_connectPeerConfigurationHasBeenSet = false;
140
141 Aws::Vector<Tag> m_tags;
142 bool m_tagsHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace EC2
147} // namespace Aws
TransitGatewayConnectPeer & WithConnectPeerConfiguration(TransitGatewayConnectPeerConfiguration &&value)
TransitGatewayConnectPeer & AddTags(const Tag &value)
TransitGatewayConnectPeer & WithCreationTime(Aws::Utils::DateTime &&value)
TransitGatewayConnectPeer & WithTransitGatewayConnectPeerId(const char *value)
void SetConnectPeerConfiguration(TransitGatewayConnectPeerConfiguration &&value)
const Aws::Utils::DateTime & GetCreationTime() const
TransitGatewayConnectPeer & WithConnectPeerConfiguration(const TransitGatewayConnectPeerConfiguration &value)
void SetTransitGatewayConnectPeerId(const Aws::String &value)
AWS_EC2_API TransitGatewayConnectPeer(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayConnectPeer & WithTransitGatewayAttachmentId(Aws::String &&value)
AWS_EC2_API TransitGatewayConnectPeer & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetState(TransitGatewayConnectPeerState &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetState(const TransitGatewayConnectPeerState &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayConnectPeer & WithTransitGatewayAttachmentId(const Aws::String &value)
TransitGatewayConnectPeer & WithTags(const Aws::Vector< Tag > &value)
TransitGatewayConnectPeer & WithTransitGatewayAttachmentId(const char *value)
TransitGatewayConnectPeer & AddTags(Tag &&value)
TransitGatewayConnectPeer & WithTransitGatewayConnectPeerId(Aws::String &&value)
void SetTransitGatewayAttachmentId(const Aws::String &value)
void SetConnectPeerConfiguration(const TransitGatewayConnectPeerConfiguration &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
TransitGatewayConnectPeer & WithTags(Aws::Vector< Tag > &&value)
TransitGatewayConnectPeer & WithState(TransitGatewayConnectPeerState &&value)
TransitGatewayConnectPeer & WithState(const TransitGatewayConnectPeerState &value)
void SetTags(const Aws::Vector< Tag > &value)
const TransitGatewayConnectPeerConfiguration & GetConnectPeerConfiguration() const
const TransitGatewayConnectPeerState & GetState() const
TransitGatewayConnectPeer & WithCreationTime(const Aws::Utils::DateTime &value)
TransitGatewayConnectPeer & WithTransitGatewayConnectPeerId(const 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