AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
VirtualInterfaceTestHistory.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/directconnect/DirectConnect_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DirectConnect {
22namespace Model {
23
31 public:
32 AWS_DIRECTCONNECT_API VirtualInterfaceTestHistory() = default;
35 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTestId() const { return m_testId; }
42 inline bool TestIdHasBeenSet() const { return m_testIdHasBeenSet; }
43 template <typename TestIdT = Aws::String>
44 void SetTestId(TestIdT&& value) {
45 m_testIdHasBeenSet = true;
46 m_testId = std::forward<TestIdT>(value);
47 }
48 template <typename TestIdT = Aws::String>
50 SetTestId(std::forward<TestIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVirtualInterfaceId() const { return m_virtualInterfaceId; }
60 inline bool VirtualInterfaceIdHasBeenSet() const { return m_virtualInterfaceIdHasBeenSet; }
61 template <typename VirtualInterfaceIdT = Aws::String>
62 void SetVirtualInterfaceId(VirtualInterfaceIdT&& value) {
63 m_virtualInterfaceIdHasBeenSet = true;
64 m_virtualInterfaceId = std::forward<VirtualInterfaceIdT>(value);
65 }
66 template <typename VirtualInterfaceIdT = Aws::String>
68 SetVirtualInterfaceId(std::forward<VirtualInterfaceIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<Aws::String>& GetBgpPeers() const { return m_bgpPeers; }
79 inline bool BgpPeersHasBeenSet() const { return m_bgpPeersHasBeenSet; }
80 template <typename BgpPeersT = Aws::Vector<Aws::String>>
81 void SetBgpPeers(BgpPeersT&& value) {
82 m_bgpPeersHasBeenSet = true;
83 m_bgpPeers = std::forward<BgpPeersT>(value);
84 }
85 template <typename BgpPeersT = Aws::Vector<Aws::String>>
87 SetBgpPeers(std::forward<BgpPeersT>(value));
88 return *this;
89 }
90 template <typename BgpPeersT = Aws::String>
92 m_bgpPeersHasBeenSet = true;
93 m_bgpPeers.emplace_back(std::forward<BgpPeersT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetStatus() const { return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 template <typename StatusT = Aws::String>
105 void SetStatus(StatusT&& value) {
106 m_statusHasBeenSet = true;
107 m_status = std::forward<StatusT>(value);
108 }
109 template <typename StatusT = Aws::String>
111 SetStatus(std::forward<StatusT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
121 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
122 template <typename OwnerAccountT = Aws::String>
123 void SetOwnerAccount(OwnerAccountT&& value) {
124 m_ownerAccountHasBeenSet = true;
125 m_ownerAccount = std::forward<OwnerAccountT>(value);
126 }
127 template <typename OwnerAccountT = Aws::String>
129 SetOwnerAccount(std::forward<OwnerAccountT>(value));
130 return *this;
131 }
133
135
138 inline int GetTestDurationInMinutes() const { return m_testDurationInMinutes; }
139 inline bool TestDurationInMinutesHasBeenSet() const { return m_testDurationInMinutesHasBeenSet; }
140 inline void SetTestDurationInMinutes(int value) {
141 m_testDurationInMinutesHasBeenSet = true;
142 m_testDurationInMinutes = value;
143 }
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
155 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
156 template <typename StartTimeT = Aws::Utils::DateTime>
157 void SetStartTime(StartTimeT&& value) {
158 m_startTimeHasBeenSet = true;
159 m_startTime = std::forward<StartTimeT>(value);
160 }
161 template <typename StartTimeT = Aws::Utils::DateTime>
163 SetStartTime(std::forward<StartTimeT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
173 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
174 template <typename EndTimeT = Aws::Utils::DateTime>
175 void SetEndTime(EndTimeT&& value) {
176 m_endTimeHasBeenSet = true;
177 m_endTime = std::forward<EndTimeT>(value);
178 }
179 template <typename EndTimeT = Aws::Utils::DateTime>
181 SetEndTime(std::forward<EndTimeT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_testId;
187
188 Aws::String m_virtualInterfaceId;
189
190 Aws::Vector<Aws::String> m_bgpPeers;
191
192 Aws::String m_status;
193
194 Aws::String m_ownerAccount;
195
196 int m_testDurationInMinutes{0};
197
198 Aws::Utils::DateTime m_startTime{};
199
200 Aws::Utils::DateTime m_endTime{};
201 bool m_testIdHasBeenSet = false;
202 bool m_virtualInterfaceIdHasBeenSet = false;
203 bool m_bgpPeersHasBeenSet = false;
204 bool m_statusHasBeenSet = false;
205 bool m_ownerAccountHasBeenSet = false;
206 bool m_testDurationInMinutesHasBeenSet = false;
207 bool m_startTimeHasBeenSet = false;
208 bool m_endTimeHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace DirectConnect
213} // namespace Aws
VirtualInterfaceTestHistory & WithBgpPeers(BgpPeersT &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
VirtualInterfaceTestHistory & WithStartTime(StartTimeT &&value)
VirtualInterfaceTestHistory & WithTestDurationInMinutes(int value)
AWS_DIRECTCONNECT_API VirtualInterfaceTestHistory()=default
VirtualInterfaceTestHistory & AddBgpPeers(BgpPeersT &&value)
AWS_DIRECTCONNECT_API VirtualInterfaceTestHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
VirtualInterfaceTestHistory & WithStatus(StatusT &&value)
VirtualInterfaceTestHistory & WithVirtualInterfaceId(VirtualInterfaceIdT &&value)
VirtualInterfaceTestHistory & WithEndTime(EndTimeT &&value)
AWS_DIRECTCONNECT_API VirtualInterfaceTestHistory(Aws::Utils::Json::JsonView jsonValue)
VirtualInterfaceTestHistory & WithOwnerAccount(OwnerAccountT &&value)
VirtualInterfaceTestHistory & WithTestId(TestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue