AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConnectPeerSummary.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/model/ConnectPeerState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/networkmanager/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkManager
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_NETWORKMANAGER_API ConnectPeerSummary();
39 AWS_NETWORKMANAGER_API ConnectPeerSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKMANAGER_API ConnectPeerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetCoreNetworkId() const{ return m_coreNetworkId; }
49 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
50 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
51 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
52 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
53 inline ConnectPeerSummary& WithCoreNetworkId(const Aws::String& value) { SetCoreNetworkId(value); return *this;}
54 inline ConnectPeerSummary& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
55 inline ConnectPeerSummary& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
57
59
62 inline const Aws::String& GetConnectAttachmentId() const{ return m_connectAttachmentId; }
63 inline bool ConnectAttachmentIdHasBeenSet() const { return m_connectAttachmentIdHasBeenSet; }
64 inline void SetConnectAttachmentId(const Aws::String& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = value; }
65 inline void SetConnectAttachmentId(Aws::String&& value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId = std::move(value); }
66 inline void SetConnectAttachmentId(const char* value) { m_connectAttachmentIdHasBeenSet = true; m_connectAttachmentId.assign(value); }
68 inline ConnectPeerSummary& WithConnectAttachmentId(Aws::String&& value) { SetConnectAttachmentId(std::move(value)); return *this;}
69 inline ConnectPeerSummary& WithConnectAttachmentId(const char* value) { SetConnectAttachmentId(value); return *this;}
71
73
76 inline const Aws::String& GetConnectPeerId() const{ return m_connectPeerId; }
77 inline bool ConnectPeerIdHasBeenSet() const { return m_connectPeerIdHasBeenSet; }
78 inline void SetConnectPeerId(const Aws::String& value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId = value; }
79 inline void SetConnectPeerId(Aws::String&& value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId = std::move(value); }
80 inline void SetConnectPeerId(const char* value) { m_connectPeerIdHasBeenSet = true; m_connectPeerId.assign(value); }
81 inline ConnectPeerSummary& WithConnectPeerId(const Aws::String& value) { SetConnectPeerId(value); return *this;}
82 inline ConnectPeerSummary& WithConnectPeerId(Aws::String&& value) { SetConnectPeerId(std::move(value)); return *this;}
83 inline ConnectPeerSummary& WithConnectPeerId(const char* value) { SetConnectPeerId(value); return *this;}
85
87
90 inline const Aws::String& GetEdgeLocation() const{ return m_edgeLocation; }
91 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
92 inline void SetEdgeLocation(const Aws::String& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = value; }
93 inline void SetEdgeLocation(Aws::String&& value) { m_edgeLocationHasBeenSet = true; m_edgeLocation = std::move(value); }
94 inline void SetEdgeLocation(const char* value) { m_edgeLocationHasBeenSet = true; m_edgeLocation.assign(value); }
95 inline ConnectPeerSummary& WithEdgeLocation(const Aws::String& value) { SetEdgeLocation(value); return *this;}
96 inline ConnectPeerSummary& WithEdgeLocation(Aws::String&& value) { SetEdgeLocation(std::move(value)); return *this;}
97 inline ConnectPeerSummary& WithEdgeLocation(const char* value) { SetEdgeLocation(value); return *this;}
99
101
104 inline const ConnectPeerState& GetConnectPeerState() const{ return m_connectPeerState; }
105 inline bool ConnectPeerStateHasBeenSet() const { return m_connectPeerStateHasBeenSet; }
106 inline void SetConnectPeerState(const ConnectPeerState& value) { m_connectPeerStateHasBeenSet = true; m_connectPeerState = value; }
107 inline void SetConnectPeerState(ConnectPeerState&& value) { m_connectPeerStateHasBeenSet = true; m_connectPeerState = std::move(value); }
109 inline ConnectPeerSummary& WithConnectPeerState(ConnectPeerState&& value) { SetConnectPeerState(std::move(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
117 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
118 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
119 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
120 inline ConnectPeerSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
121 inline ConnectPeerSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
123
125
128 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
131 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
132 inline ConnectPeerSummary& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
133 inline ConnectPeerSummary& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
134 inline ConnectPeerSummary& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
135 inline ConnectPeerSummary& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
137
139
142 inline const Aws::String& GetSubnetArn() const{ return m_subnetArn; }
143 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
144 inline void SetSubnetArn(const Aws::String& value) { m_subnetArnHasBeenSet = true; m_subnetArn = value; }
145 inline void SetSubnetArn(Aws::String&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::move(value); }
146 inline void SetSubnetArn(const char* value) { m_subnetArnHasBeenSet = true; m_subnetArn.assign(value); }
147 inline ConnectPeerSummary& WithSubnetArn(const Aws::String& value) { SetSubnetArn(value); return *this;}
148 inline ConnectPeerSummary& WithSubnetArn(Aws::String&& value) { SetSubnetArn(std::move(value)); return *this;}
149 inline ConnectPeerSummary& WithSubnetArn(const char* value) { SetSubnetArn(value); return *this;}
151 private:
152
153 Aws::String m_coreNetworkId;
154 bool m_coreNetworkIdHasBeenSet = false;
155
156 Aws::String m_connectAttachmentId;
157 bool m_connectAttachmentIdHasBeenSet = false;
158
159 Aws::String m_connectPeerId;
160 bool m_connectPeerIdHasBeenSet = false;
161
162 Aws::String m_edgeLocation;
163 bool m_edgeLocationHasBeenSet = false;
164
165 ConnectPeerState m_connectPeerState;
166 bool m_connectPeerStateHasBeenSet = false;
167
168 Aws::Utils::DateTime m_createdAt;
169 bool m_createdAtHasBeenSet = false;
170
171 Aws::Vector<Tag> m_tags;
172 bool m_tagsHasBeenSet = false;
173
174 Aws::String m_subnetArn;
175 bool m_subnetArnHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace NetworkManager
180} // namespace Aws
ConnectPeerSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
AWS_NETWORKMANAGER_API ConnectPeerSummary(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerSummary & AddTags(const Tag &value)
const Aws::Vector< Tag > & GetTags() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
ConnectPeerSummary & WithCoreNetworkId(Aws::String &&value)
ConnectPeerSummary & WithSubnetArn(const char *value)
ConnectPeerSummary & WithSubnetArn(const Aws::String &value)
void SetConnectPeerState(ConnectPeerState &&value)
ConnectPeerSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
ConnectPeerSummary & WithConnectPeerState(ConnectPeerState &&value)
ConnectPeerSummary & WithCoreNetworkId(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
ConnectPeerSummary & WithConnectPeerId(Aws::String &&value)
ConnectPeerSummary & WithTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetConnectAttachmentId(const Aws::String &value)
ConnectPeerSummary & WithConnectAttachmentId(Aws::String &&value)
ConnectPeerSummary & WithConnectPeerState(const ConnectPeerState &value)
ConnectPeerSummary & WithConnectPeerId(const Aws::String &value)
ConnectPeerSummary & WithTags(const Aws::Vector< Tag > &value)
ConnectPeerSummary & WithEdgeLocation(Aws::String &&value)
void SetConnectPeerId(const Aws::String &value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectPeerSummary & WithEdgeLocation(const Aws::String &value)
ConnectPeerSummary & WithCoreNetworkId(const char *value)
ConnectPeerSummary & WithEdgeLocation(const char *value)
ConnectPeerSummary & WithConnectPeerId(const char *value)
void SetConnectPeerState(const ConnectPeerState &value)
void SetCoreNetworkId(const Aws::String &value)
ConnectPeerSummary & WithSubnetArn(Aws::String &&value)
ConnectPeerSummary & WithConnectAttachmentId(const Aws::String &value)
ConnectPeerSummary & WithConnectAttachmentId(const char *value)
const ConnectPeerState & GetConnectPeerState() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_NETWORKMANAGER_API ConnectPeerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue