AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DashboardEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudWatch {
21namespace Model {
22
29 public:
30 AWS_CLOUDWATCH_API DashboardEntry() = default;
31 AWS_CLOUDWATCH_API DashboardEntry(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDWATCH_API DashboardEntry& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetDashboardName() const { return m_dashboardName; }
40 inline bool DashboardNameHasBeenSet() const { return m_dashboardNameHasBeenSet; }
41 template <typename DashboardNameT = Aws::String>
42 void SetDashboardName(DashboardNameT&& value) {
43 m_dashboardNameHasBeenSet = true;
44 m_dashboardName = std::forward<DashboardNameT>(value);
45 }
46 template <typename DashboardNameT = Aws::String>
47 DashboardEntry& WithDashboardName(DashboardNameT&& value) {
48 SetDashboardName(std::forward<DashboardNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDashboardArn() const { return m_dashboardArn; }
58 inline bool DashboardArnHasBeenSet() const { return m_dashboardArnHasBeenSet; }
59 template <typename DashboardArnT = Aws::String>
60 void SetDashboardArn(DashboardArnT&& value) {
61 m_dashboardArnHasBeenSet = true;
62 m_dashboardArn = std::forward<DashboardArnT>(value);
63 }
64 template <typename DashboardArnT = Aws::String>
65 DashboardEntry& WithDashboardArn(DashboardArnT&& value) {
66 SetDashboardArn(std::forward<DashboardArnT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
78 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
79 template <typename LastModifiedT = Aws::Utils::DateTime>
80 void SetLastModified(LastModifiedT&& value) {
81 m_lastModifiedHasBeenSet = true;
82 m_lastModified = std::forward<LastModifiedT>(value);
83 }
84 template <typename LastModifiedT = Aws::Utils::DateTime>
85 DashboardEntry& WithLastModified(LastModifiedT&& value) {
86 SetLastModified(std::forward<LastModifiedT>(value));
87 return *this;
88 }
90
92
95 inline long long GetSize() const { return m_size; }
96 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
97 inline void SetSize(long long value) {
98 m_sizeHasBeenSet = true;
99 m_size = value;
100 }
101 inline DashboardEntry& WithSize(long long value) {
102 SetSize(value);
103 return *this;
104 }
106 private:
107 Aws::String m_dashboardName;
108
109 Aws::String m_dashboardArn;
110
111 Aws::Utils::DateTime m_lastModified{};
112
113 long long m_size{0};
114 bool m_dashboardNameHasBeenSet = false;
115 bool m_dashboardArnHasBeenSet = false;
116 bool m_lastModifiedHasBeenSet = false;
117 bool m_sizeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CloudWatch
122} // namespace Aws
void SetDashboardName(DashboardNameT &&value)
const Aws::String & GetDashboardArn() const
AWS_CLOUDWATCH_API DashboardEntry(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool SizeHasBeenSet() const
AWS_CLOUDWATCH_API DashboardEntry & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API DashboardEntry()=default
bool DashboardNameHasBeenSet() const
DashboardEntry & WithSize(long long value)
bool LastModifiedHasBeenSet() const
void SetLastModified(LastModifiedT &&value)
void SetSize(long long value)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool DashboardArnHasBeenSet() const
const Aws::String & GetDashboardName() const
const Aws::Utils::DateTime & GetLastModified() const
long long GetSize() const
DashboardEntry & WithDashboardName(DashboardNameT &&value)
DashboardEntry & WithLastModified(LastModifiedT &&value)
void SetDashboardArn(DashboardArnT &&value)
DashboardEntry & WithDashboardArn(DashboardArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String