AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OdbPeeringConnectionSummary.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
34 {
35 public:
36 AWS_ODB_API OdbPeeringConnectionSummary() = default;
40
41
43
47 inline const Aws::String& GetOdbPeeringConnectionId() const { return m_odbPeeringConnectionId; }
48 inline bool OdbPeeringConnectionIdHasBeenSet() const { return m_odbPeeringConnectionIdHasBeenSet; }
49 template<typename OdbPeeringConnectionIdT = Aws::String>
50 void SetOdbPeeringConnectionId(OdbPeeringConnectionIdT&& value) { m_odbPeeringConnectionIdHasBeenSet = true; m_odbPeeringConnectionId = std::forward<OdbPeeringConnectionIdT>(value); }
51 template<typename OdbPeeringConnectionIdT = Aws::String>
52 OdbPeeringConnectionSummary& WithOdbPeeringConnectionId(OdbPeeringConnectionIdT&& value) { SetOdbPeeringConnectionId(std::forward<OdbPeeringConnectionIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDisplayName() const { return m_displayName; }
60 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
61 template<typename DisplayNameT = Aws::String>
62 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
63 template<typename DisplayNameT = Aws::String>
64 OdbPeeringConnectionSummary& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
66
68
72 inline ResourceStatus GetStatus() const { return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(ResourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
75 inline OdbPeeringConnectionSummary& WithStatus(ResourceStatus value) { SetStatus(value); return *this;}
77
79
82 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
83 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
84 template<typename StatusReasonT = Aws::String>
85 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
86 template<typename StatusReasonT = Aws::String>
87 OdbPeeringConnectionSummary& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
89
91
94 inline const Aws::String& GetOdbPeeringConnectionArn() const { return m_odbPeeringConnectionArn; }
95 inline bool OdbPeeringConnectionArnHasBeenSet() const { return m_odbPeeringConnectionArnHasBeenSet; }
96 template<typename OdbPeeringConnectionArnT = Aws::String>
97 void SetOdbPeeringConnectionArn(OdbPeeringConnectionArnT&& value) { m_odbPeeringConnectionArnHasBeenSet = true; m_odbPeeringConnectionArn = std::forward<OdbPeeringConnectionArnT>(value); }
98 template<typename OdbPeeringConnectionArnT = Aws::String>
99 OdbPeeringConnectionSummary& WithOdbPeeringConnectionArn(OdbPeeringConnectionArnT&& value) { SetOdbPeeringConnectionArn(std::forward<OdbPeeringConnectionArnT>(value)); return *this;}
101
103
107 inline const Aws::String& GetOdbNetworkArn() const { return m_odbNetworkArn; }
108 inline bool OdbNetworkArnHasBeenSet() const { return m_odbNetworkArnHasBeenSet; }
109 template<typename OdbNetworkArnT = Aws::String>
110 void SetOdbNetworkArn(OdbNetworkArnT&& value) { m_odbNetworkArnHasBeenSet = true; m_odbNetworkArn = std::forward<OdbNetworkArnT>(value); }
111 template<typename OdbNetworkArnT = Aws::String>
112 OdbPeeringConnectionSummary& WithOdbNetworkArn(OdbNetworkArnT&& value) { SetOdbNetworkArn(std::forward<OdbNetworkArnT>(value)); return *this;}
114
116
119 inline const Aws::String& GetPeerNetworkArn() const { return m_peerNetworkArn; }
120 inline bool PeerNetworkArnHasBeenSet() const { return m_peerNetworkArnHasBeenSet; }
121 template<typename PeerNetworkArnT = Aws::String>
122 void SetPeerNetworkArn(PeerNetworkArnT&& value) { m_peerNetworkArnHasBeenSet = true; m_peerNetworkArn = std::forward<PeerNetworkArnT>(value); }
123 template<typename PeerNetworkArnT = Aws::String>
124 OdbPeeringConnectionSummary& WithPeerNetworkArn(PeerNetworkArnT&& value) { SetPeerNetworkArn(std::forward<PeerNetworkArnT>(value)); return *this;}
126
128
132 inline const Aws::String& GetOdbPeeringConnectionType() const { return m_odbPeeringConnectionType; }
133 inline bool OdbPeeringConnectionTypeHasBeenSet() const { return m_odbPeeringConnectionTypeHasBeenSet; }
134 template<typename OdbPeeringConnectionTypeT = Aws::String>
135 void SetOdbPeeringConnectionType(OdbPeeringConnectionTypeT&& value) { m_odbPeeringConnectionTypeHasBeenSet = true; m_odbPeeringConnectionType = std::forward<OdbPeeringConnectionTypeT>(value); }
136 template<typename OdbPeeringConnectionTypeT = Aws::String>
137 OdbPeeringConnectionSummary& WithOdbPeeringConnectionType(OdbPeeringConnectionTypeT&& value) { SetOdbPeeringConnectionType(std::forward<OdbPeeringConnectionTypeT>(value)); return *this;}
139
141
144 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
145 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
146 template<typename CreatedAtT = Aws::Utils::DateTime>
147 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
148 template<typename CreatedAtT = Aws::Utils::DateTime>
149 OdbPeeringConnectionSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
151
153
157 inline double GetPercentProgress() const { return m_percentProgress; }
158 inline bool PercentProgressHasBeenSet() const { return m_percentProgressHasBeenSet; }
159 inline void SetPercentProgress(double value) { m_percentProgressHasBeenSet = true; m_percentProgress = value; }
160 inline OdbPeeringConnectionSummary& WithPercentProgress(double value) { SetPercentProgress(value); return *this;}
162 private:
163
164 Aws::String m_odbPeeringConnectionId;
165 bool m_odbPeeringConnectionIdHasBeenSet = false;
166
167 Aws::String m_displayName;
168 bool m_displayNameHasBeenSet = false;
169
171 bool m_statusHasBeenSet = false;
172
173 Aws::String m_statusReason;
174 bool m_statusReasonHasBeenSet = false;
175
176 Aws::String m_odbPeeringConnectionArn;
177 bool m_odbPeeringConnectionArnHasBeenSet = false;
178
179 Aws::String m_odbNetworkArn;
180 bool m_odbNetworkArnHasBeenSet = false;
181
182 Aws::String m_peerNetworkArn;
183 bool m_peerNetworkArnHasBeenSet = false;
184
185 Aws::String m_odbPeeringConnectionType;
186 bool m_odbPeeringConnectionTypeHasBeenSet = false;
187
188 Aws::Utils::DateTime m_createdAt{};
189 bool m_createdAtHasBeenSet = false;
190
191 double m_percentProgress{0.0};
192 bool m_percentProgressHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace odb
197} // namespace Aws
void SetOdbPeeringConnectionId(OdbPeeringConnectionIdT &&value)
OdbPeeringConnectionSummary & WithOdbPeeringConnectionArn(OdbPeeringConnectionArnT &&value)
void SetOdbPeeringConnectionArn(OdbPeeringConnectionArnT &&value)
OdbPeeringConnectionSummary & WithStatus(ResourceStatus value)
AWS_ODB_API OdbPeeringConnectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ODB_API OdbPeeringConnectionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_ODB_API OdbPeeringConnectionSummary()=default
OdbPeeringConnectionSummary & WithOdbPeeringConnectionId(OdbPeeringConnectionIdT &&value)
OdbPeeringConnectionSummary & WithDisplayName(DisplayNameT &&value)
void SetOdbPeeringConnectionType(OdbPeeringConnectionTypeT &&value)
OdbPeeringConnectionSummary & WithPeerNetworkArn(PeerNetworkArnT &&value)
OdbPeeringConnectionSummary & WithPercentProgress(double value)
OdbPeeringConnectionSummary & WithOdbPeeringConnectionType(OdbPeeringConnectionTypeT &&value)
OdbPeeringConnectionSummary & WithOdbNetworkArn(OdbNetworkArnT &&value)
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
OdbPeeringConnectionSummary & WithCreatedAt(CreatedAtT &&value)
OdbPeeringConnectionSummary & WithStatusReason(StatusReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue