AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
ViewSummary.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/ViewType.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 CloudWatchOmni {
22namespace Model {
23
31 public:
32 AWS_CLOUDWATCHOMNI_API ViewSummary() = default;
33 AWS_CLOUDWATCHOMNI_API ViewSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API ViewSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 ViewSummary& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline ViewType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(ViewType value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
65 inline ViewSummary& WithType(ViewType value) {
66 SetType(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 ViewSummary& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 template <typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) {
97 m_createdAtHasBeenSet = true;
98 m_createdAt = std::forward<CreatedAtT>(value);
99 }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 ViewSummary& WithCreatedAt(CreatedAtT&& value) {
102 SetCreatedAt(std::forward<CreatedAtT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
112 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
113 template <typename UpdatedAtT = Aws::Utils::DateTime>
114 void SetUpdatedAt(UpdatedAtT&& value) {
115 m_updatedAtHasBeenSet = true;
116 m_updatedAt = std::forward<UpdatedAtT>(value);
117 }
118 template <typename UpdatedAtT = Aws::Utils::DateTime>
119 ViewSummary& WithUpdatedAt(UpdatedAtT&& value) {
120 SetUpdatedAt(std::forward<UpdatedAtT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_name;
126
128
129 Aws::String m_description;
130
131 Aws::Utils::DateTime m_createdAt{};
132
133 Aws::Utils::DateTime m_updatedAt{};
134 bool m_nameHasBeenSet = false;
135 bool m_typeHasBeenSet = false;
136 bool m_descriptionHasBeenSet = false;
137 bool m_createdAtHasBeenSet = false;
138 bool m_updatedAtHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace CloudWatchOmni
143} // namespace Aws
ViewSummary & WithDescription(DescriptionT &&value)
Definition ViewSummary.h:83
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition ViewSummary.h:93
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API ViewSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Utils::DateTime & GetUpdatedAt() const
ViewSummary & WithCreatedAt(CreatedAtT &&value)
ViewSummary & WithUpdatedAt(UpdatedAtT &&value)
ViewSummary & WithType(ViewType value)
Definition ViewSummary.h:65
ViewSummary & WithName(NameT &&value)
Definition ViewSummary.h:49
AWS_CLOUDWATCHOMNI_API ViewSummary()=default
AWS_CLOUDWATCHOMNI_API ViewSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetDescription() const
Definition ViewSummary.h:75
void SetDescription(DescriptionT &&value)
Definition ViewSummary.h:78
void SetCreatedAt(CreatedAtT &&value)
Definition ViewSummary.h:96
const Aws::String & GetName() const
Definition ViewSummary.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String