AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ConnectionItem.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/ConnectionItemKind.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Assurance {
22namespace Model {
23
31 public:
32 AWS_ASSURANCE_API ConnectionItem() = default;
33 AWS_ASSURANCE_API ConnectionItem(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_ASSURANCE_API ConnectionItem& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 ConnectionItem& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
65 inline ConnectionItemKind GetKind() const { return m_kind; }
66 inline bool KindHasBeenSet() const { return m_kindHasBeenSet; }
67 inline void SetKind(ConnectionItemKind value) {
68 m_kindHasBeenSet = true;
69 m_kind = value;
70 }
72 SetKind(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 ConnectionItem& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetUrl() const { return m_url; }
102 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
103 template <typename UrlT = Aws::String>
104 void SetUrl(UrlT&& value) {
105 m_urlHasBeenSet = true;
106 m_url = std::forward<UrlT>(value);
107 }
108 template <typename UrlT = Aws::String>
109 ConnectionItem& WithUrl(UrlT&& value) {
110 SetUrl(std::forward<UrlT>(value));
111 return *this;
112 }
114
116
120 inline long long GetSizeBytes() const { return m_sizeBytes; }
121 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
122 inline void SetSizeBytes(long long value) {
123 m_sizeBytesHasBeenSet = true;
124 m_sizeBytes = value;
125 }
126 inline ConnectionItem& WithSizeBytes(long long value) {
127 SetSizeBytes(value);
128 return *this;
129 }
131
133
137 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
138 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
139 template <typename UpdatedAtT = Aws::Utils::DateTime>
140 void SetUpdatedAt(UpdatedAtT&& value) {
141 m_updatedAtHasBeenSet = true;
142 m_updatedAt = std::forward<UpdatedAtT>(value);
143 }
144 template <typename UpdatedAtT = Aws::Utils::DateTime>
145 ConnectionItem& WithUpdatedAt(UpdatedAtT&& value) {
146 SetUpdatedAt(std::forward<UpdatedAtT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_id;
152
154
155 Aws::String m_name;
156
157 Aws::String m_url;
158
159 long long m_sizeBytes{0};
160
161 Aws::Utils::DateTime m_updatedAt{};
162 bool m_idHasBeenSet = false;
163 bool m_kindHasBeenSet = false;
164 bool m_nameHasBeenSet = false;
165 bool m_urlHasBeenSet = false;
166 bool m_sizeBytesHasBeenSet = false;
167 bool m_updatedAtHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace Assurance
172} // namespace Aws
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetUpdatedAt() const
ConnectionItem & WithUpdatedAt(UpdatedAtT &&value)
ConnectionItem & WithId(IdT &&value)
ConnectionItem & WithSizeBytes(long long value)
ConnectionItem & WithUrl(UrlT &&value)
ConnectionItem & WithKind(ConnectionItemKind value)
const Aws::String & GetId() const
AWS_ASSURANCE_API ConnectionItem(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ConnectionItemKind GetKind() const
void SetKind(ConnectionItemKind value)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetUrl() const
ConnectionItem & WithName(NameT &&value)
AWS_ASSURANCE_API ConnectionItem()=default
void SetUpdatedAt(UpdatedAtT &&value)
AWS_ASSURANCE_API ConnectionItem & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String