AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OdbPeeringConnection.h
1
6#pragma once
7#include <aws/odb/Odb_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/odb/model/ResourceStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace odb
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ODB_API OdbPeeringConnection() = default;
41
42
44
48 inline const Aws::String& GetOdbPeeringConnectionId() const { return m_odbPeeringConnectionId; }
49 inline bool OdbPeeringConnectionIdHasBeenSet() const { return m_odbPeeringConnectionIdHasBeenSet; }
50 template<typename OdbPeeringConnectionIdT = Aws::String>
51 void SetOdbPeeringConnectionId(OdbPeeringConnectionIdT&& value) { m_odbPeeringConnectionIdHasBeenSet = true; m_odbPeeringConnectionId = std::forward<OdbPeeringConnectionIdT>(value); }
52 template<typename OdbPeeringConnectionIdT = Aws::String>
53 OdbPeeringConnection& WithOdbPeeringConnectionId(OdbPeeringConnectionIdT&& value) { SetOdbPeeringConnectionId(std::forward<OdbPeeringConnectionIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDisplayName() const { return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 template<typename DisplayNameT = Aws::String>
63 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
64 template<typename DisplayNameT = Aws::String>
65 OdbPeeringConnection& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
67
69
73 inline ResourceStatus GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(ResourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
76 inline OdbPeeringConnection& WithStatus(ResourceStatus value) { SetStatus(value); return *this;}
78
80
83 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
84 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
85 template<typename StatusReasonT = Aws::String>
86 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
87 template<typename StatusReasonT = Aws::String>
88 OdbPeeringConnection& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
90
92
97 inline const Aws::String& GetOdbPeeringConnectionArn() const { return m_odbPeeringConnectionArn; }
98 inline bool OdbPeeringConnectionArnHasBeenSet() const { return m_odbPeeringConnectionArnHasBeenSet; }
99 template<typename OdbPeeringConnectionArnT = Aws::String>
100 void SetOdbPeeringConnectionArn(OdbPeeringConnectionArnT&& value) { m_odbPeeringConnectionArnHasBeenSet = true; m_odbPeeringConnectionArn = std::forward<OdbPeeringConnectionArnT>(value); }
101 template<typename OdbPeeringConnectionArnT = Aws::String>
102 OdbPeeringConnection& WithOdbPeeringConnectionArn(OdbPeeringConnectionArnT&& value) { SetOdbPeeringConnectionArn(std::forward<OdbPeeringConnectionArnT>(value)); return *this;}
104
106
110 inline const Aws::String& GetOdbNetworkArn() const { return m_odbNetworkArn; }
111 inline bool OdbNetworkArnHasBeenSet() const { return m_odbNetworkArnHasBeenSet; }
112 template<typename OdbNetworkArnT = Aws::String>
113 void SetOdbNetworkArn(OdbNetworkArnT&& value) { m_odbNetworkArnHasBeenSet = true; m_odbNetworkArn = std::forward<OdbNetworkArnT>(value); }
114 template<typename OdbNetworkArnT = Aws::String>
115 OdbPeeringConnection& WithOdbNetworkArn(OdbNetworkArnT&& value) { SetOdbNetworkArn(std::forward<OdbNetworkArnT>(value)); return *this;}
117
119
122 inline const Aws::String& GetPeerNetworkArn() const { return m_peerNetworkArn; }
123 inline bool PeerNetworkArnHasBeenSet() const { return m_peerNetworkArnHasBeenSet; }
124 template<typename PeerNetworkArnT = Aws::String>
125 void SetPeerNetworkArn(PeerNetworkArnT&& value) { m_peerNetworkArnHasBeenSet = true; m_peerNetworkArn = std::forward<PeerNetworkArnT>(value); }
126 template<typename PeerNetworkArnT = Aws::String>
127 OdbPeeringConnection& WithPeerNetworkArn(PeerNetworkArnT&& value) { SetPeerNetworkArn(std::forward<PeerNetworkArnT>(value)); return *this;}
129
131
135 inline const Aws::String& GetOdbPeeringConnectionType() const { return m_odbPeeringConnectionType; }
136 inline bool OdbPeeringConnectionTypeHasBeenSet() const { return m_odbPeeringConnectionTypeHasBeenSet; }
137 template<typename OdbPeeringConnectionTypeT = Aws::String>
138 void SetOdbPeeringConnectionType(OdbPeeringConnectionTypeT&& value) { m_odbPeeringConnectionTypeHasBeenSet = true; m_odbPeeringConnectionType = std::forward<OdbPeeringConnectionTypeT>(value); }
139 template<typename OdbPeeringConnectionTypeT = Aws::String>
140 OdbPeeringConnection& WithOdbPeeringConnectionType(OdbPeeringConnectionTypeT&& value) { SetOdbPeeringConnectionType(std::forward<OdbPeeringConnectionTypeT>(value)); return *this;}
142
144
147 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
148 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
149 template<typename CreatedAtT = Aws::Utils::DateTime>
150 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
151 template<typename CreatedAtT = Aws::Utils::DateTime>
152 OdbPeeringConnection& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
154
156
160 inline double GetPercentProgress() const { return m_percentProgress; }
161 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
162 inline void SetPercentProgress(double value) { m_percentProgressHasBeenSet = true; m_percentProgress = value; }
163 inline OdbPeeringConnection& WithPercentProgress(double value) { SetPercentProgress(value); return *this;}
165 private:
166
167 Aws::String m_odbPeeringConnectionId;
168 bool m_odbPeeringConnectionIdHasBeenSet = false;
169
170 Aws::String m_displayName;
171 bool m_displayNameHasBeenSet = false;
172
174 bool m_statusHasBeenSet = false;
175
176 Aws::String m_statusReason;
177 bool m_statusReasonHasBeenSet = false;
178
179 Aws::String m_odbPeeringConnectionArn;
180 bool m_odbPeeringConnectionArnHasBeenSet = false;
181
182 Aws::String m_odbNetworkArn;
183 bool m_odbNetworkArnHasBeenSet = false;
184
185 Aws::String m_peerNetworkArn;
186 bool m_peerNetworkArnHasBeenSet = false;
187
188 Aws::String m_odbPeeringConnectionType;
189 bool m_odbPeeringConnectionTypeHasBeenSet = false;
190
191 Aws::Utils::DateTime m_createdAt{};
192 bool m_createdAtHasBeenSet = false;
193
194 double m_percentProgress{0.0};
195 bool m_percentProgressHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace odb
200} // namespace Aws
OdbPeeringConnection & WithStatusReason(StatusReasonT &&value)
OdbPeeringConnection & WithStatus(ResourceStatus value)
AWS_ODB_API OdbPeeringConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
OdbPeeringConnection & WithPercentProgress(double value)
OdbPeeringConnection & WithOdbPeeringConnectionId(OdbPeeringConnectionIdT &&value)
AWS_ODB_API OdbPeeringConnection(Aws::Utils::Json::JsonView jsonValue)
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetOdbPeeringConnectionId() const
AWS_ODB_API OdbPeeringConnection()=default
void SetPeerNetworkArn(PeerNetworkArnT &&value)
OdbPeeringConnection & WithPeerNetworkArn(PeerNetworkArnT &&value)
const Aws::String & GetOdbNetworkArn() const
const Aws::String & GetStatusReason() const
void SetOdbPeeringConnectionId(OdbPeeringConnectionIdT &&value)
void SetStatusReason(StatusReasonT &&value)
void SetOdbNetworkArn(OdbNetworkArnT &&value)
OdbPeeringConnection & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetOdbPeeringConnectionType() const
OdbPeeringConnection & WithOdbNetworkArn(OdbNetworkArnT &&value)
void SetOdbPeeringConnectionArn(OdbPeeringConnectionArnT &&value)
void SetOdbPeeringConnectionType(OdbPeeringConnectionTypeT &&value)
OdbPeeringConnection & WithOdbPeeringConnectionType(OdbPeeringConnectionTypeT &&value)
const Aws::String & GetOdbPeeringConnectionArn() const
OdbPeeringConnection & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetDisplayName() const
const Aws::String & GetPeerNetworkArn() const
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
OdbPeeringConnection & WithOdbPeeringConnectionArn(OdbPeeringConnectionArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue