AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MetricDimension.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EMR {
20namespace Model {
21
33 public:
34 AWS_EMR_API MetricDimension() = default;
38
40
43 inline const Aws::String& GetKey() const { return m_key; }
44 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
45 template <typename KeyT = Aws::String>
46 void SetKey(KeyT&& value) {
47 m_keyHasBeenSet = true;
48 m_key = std::forward<KeyT>(value);
49 }
50 template <typename KeyT = Aws::String>
51 MetricDimension& WithKey(KeyT&& value) {
52 SetKey(std::forward<KeyT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetValue() const { return m_value; }
62 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
63 template <typename ValueT = Aws::String>
64 void SetValue(ValueT&& value) {
65 m_valueHasBeenSet = true;
66 m_value = std::forward<ValueT>(value);
67 }
68 template <typename ValueT = Aws::String>
69 MetricDimension& WithValue(ValueT&& value) {
70 SetValue(std::forward<ValueT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_key;
76
77 Aws::String m_value;
78 bool m_keyHasBeenSet = false;
79 bool m_valueHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace EMR
84} // namespace Aws
const Aws::String & GetValue() const
MetricDimension & WithValue(ValueT &&value)
AWS_EMR_API MetricDimension(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API MetricDimension()=default
AWS_EMR_API MetricDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
MetricDimension & WithKey(KeyT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue