AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
TunnelSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
10#include <aws/iotsecuretunneling/model/TunnelStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTSecureTunneling {
22namespace Model {
23
30 public:
31 AWS_IOTSECURETUNNELING_API TunnelSummary() = default;
32 AWS_IOTSECURETUNNELING_API TunnelSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTSECURETUNNELING_API TunnelSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetTunnelId() const { return m_tunnelId; }
41 inline bool TunnelIdHasBeenSet() const { return m_tunnelIdHasBeenSet; }
42 template <typename TunnelIdT = Aws::String>
43 void SetTunnelId(TunnelIdT&& value) {
44 m_tunnelIdHasBeenSet = true;
45 m_tunnelId = std::forward<TunnelIdT>(value);
46 }
47 template <typename TunnelIdT = Aws::String>
48 TunnelSummary& WithTunnelId(TunnelIdT&& value) {
49 SetTunnelId(std::forward<TunnelIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTunnelArn() const { return m_tunnelArn; }
59 inline bool TunnelArnHasBeenSet() const { return m_tunnelArnHasBeenSet; }
60 template <typename TunnelArnT = Aws::String>
61 void SetTunnelArn(TunnelArnT&& value) {
62 m_tunnelArnHasBeenSet = true;
63 m_tunnelArn = std::forward<TunnelArnT>(value);
64 }
65 template <typename TunnelArnT = Aws::String>
66 TunnelSummary& WithTunnelArn(TunnelArnT&& value) {
67 SetTunnelArn(std::forward<TunnelArnT>(value));
68 return *this;
69 }
71
73
76 inline TunnelStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(TunnelStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
100 TunnelSummary& WithDescription(DescriptionT&& value) {
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
111 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 void SetCreatedAt(CreatedAtT&& value) {
114 m_createdAtHasBeenSet = true;
115 m_createdAt = std::forward<CreatedAtT>(value);
116 }
117 template <typename CreatedAtT = Aws::Utils::DateTime>
118 TunnelSummary& WithCreatedAt(CreatedAtT&& value) {
119 SetCreatedAt(std::forward<CreatedAtT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
129 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
130 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
131 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
132 m_lastUpdatedAtHasBeenSet = true;
133 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
134 }
135 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
136 TunnelSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
137 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_tunnelId;
143
144 Aws::String m_tunnelArn;
145
147
148 Aws::String m_description;
149
150 Aws::Utils::DateTime m_createdAt{};
151
152 Aws::Utils::DateTime m_lastUpdatedAt{};
153 bool m_tunnelIdHasBeenSet = false;
154 bool m_tunnelArnHasBeenSet = false;
155 bool m_statusHasBeenSet = false;
156 bool m_descriptionHasBeenSet = false;
157 bool m_createdAtHasBeenSet = false;
158 bool m_lastUpdatedAtHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace IoTSecureTunneling
163} // namespace Aws
TunnelSummary & WithStatus(TunnelStatus value)
const Aws::String & GetDescription() const
AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSECURETUNNELING_API TunnelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
TunnelSummary & WithTunnelId(TunnelIdT &&value)
AWS_IOTSECURETUNNELING_API TunnelSummary()=default
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_IOTSECURETUNNELING_API TunnelSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
TunnelSummary & WithCreatedAt(CreatedAtT &&value)
TunnelSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
TunnelSummary & WithTunnelArn(TunnelArnT &&value)
TunnelSummary & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue