AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
MetricSemantics.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatchOmni {
20namespace Model {
21
28 public:
29 AWS_CLOUDWATCHOMNI_API MetricSemantics() = default;
30 AWS_CLOUDWATCHOMNI_API MetricSemantics(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_CLOUDWATCHOMNI_API MetricSemantics& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const Aws::String& GetDescription() const { return m_description; }
39 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
40 template <typename DescriptionT = Aws::String>
41 void SetDescription(DescriptionT&& value) {
42 m_descriptionHasBeenSet = true;
43 m_description = std::forward<DescriptionT>(value);
44 }
45 template <typename DescriptionT = Aws::String>
46 MetricSemantics& WithDescription(DescriptionT&& value) {
47 SetDescription(std::forward<DescriptionT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUnit() const { return m_unit; }
57 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
58 template <typename UnitT = Aws::String>
59 void SetUnit(UnitT&& value) {
60 m_unitHasBeenSet = true;
61 m_unit = std::forward<UnitT>(value);
62 }
63 template <typename UnitT = Aws::String>
64 MetricSemantics& WithUnit(UnitT&& value) {
65 SetUnit(std::forward<UnitT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_description;
71
72 Aws::String m_unit;
73 bool m_descriptionHasBeenSet = false;
74 bool m_unitHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CloudWatchOmni
79} // namespace Aws
AWS_CLOUDWATCHOMNI_API MetricSemantics()=default
AWS_CLOUDWATCHOMNI_API MetricSemantics & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
MetricSemantics & WithUnit(UnitT &&value)
const Aws::String & GetDescription() const
AWS_CLOUDWATCHOMNI_API MetricSemantics(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
MetricSemantics & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String