AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Dimension.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatch {
20namespace Model {
21
33class Dimension {
34 public:
35 AWS_CLOUDWATCH_API Dimension() = default;
36 AWS_CLOUDWATCH_API Dimension(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CLOUDWATCH_API Dimension& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 Dimension& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetValue() const { return m_value; }
68 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
69 template <typename ValueT = Aws::String>
70 void SetValue(ValueT&& value) {
71 m_valueHasBeenSet = true;
72 m_value = std::forward<ValueT>(value);
73 }
74 template <typename ValueT = Aws::String>
75 Dimension& WithValue(ValueT&& value) {
76 SetValue(std::forward<ValueT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_name;
82
83 Aws::String m_value;
84 bool m_nameHasBeenSet = false;
85 bool m_valueHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace CloudWatch
90} // namespace Aws
void SetValue(ValueT &&value)
Definition Dimension.h:70
AWS_CLOUDWATCH_API Dimension(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetValue() const
Definition Dimension.h:67
void SetName(NameT &&value)
Definition Dimension.h:50
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API Dimension & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API Dimension()=default
Dimension & WithName(NameT &&value)
Definition Dimension.h:55
Dimension & WithValue(ValueT &&value)
Definition Dimension.h:75
const Aws::String & GetName() const
Definition Dimension.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String