AWS SDK for C++  1.9.20
AWS SDK for C++
MetricDimension.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace EMR
22 {
23 namespace Model
24 {
25 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetKey() const{ return m_key; }
49 
53  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
54 
58  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
59 
63  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
64 
68  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
69 
73  inline MetricDimension& WithKey(const Aws::String& value) { SetKey(value); return *this;}
74 
78  inline MetricDimension& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
79 
83  inline MetricDimension& WithKey(const char* value) { SetKey(value); return *this;}
84 
85 
89  inline const Aws::String& GetValue() const{ return m_value; }
90 
94  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
95 
99  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
100 
104  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
105 
109  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
110 
114  inline MetricDimension& WithValue(const Aws::String& value) { SetValue(value); return *this;}
115 
119  inline MetricDimension& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
120 
124  inline MetricDimension& WithValue(const char* value) { SetValue(value); return *this;}
125 
126  private:
127 
128  Aws::String m_key;
129  bool m_keyHasBeenSet;
130 
131  Aws::String m_value;
132  bool m_valueHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace EMR
137 } // namespace Aws
Aws::EMR::Model::MetricDimension::SetValue
void SetValue(Aws::String &&value)
Definition: MetricDimension.h:104
Aws::EMR::Model::MetricDimension::SetKey
void SetKey(const Aws::String &value)
Definition: MetricDimension.h:58
Aws::EMR::Model::MetricDimension::WithKey
MetricDimension & WithKey(const Aws::String &value)
Definition: MetricDimension.h:73
Aws::EMR::Model::MetricDimension::WithValue
MetricDimension & WithValue(const Aws::String &value)
Definition: MetricDimension.h:114
Aws::EMR::Model::MetricDimension::operator=
MetricDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
EMR_EXPORTS.h
Aws::EMR::Model::MetricDimension::GetKey
const Aws::String & GetKey() const
Definition: MetricDimension.h:48
Aws::EMR::Model::MetricDimension::WithValue
MetricDimension & WithValue(const char *value)
Definition: MetricDimension.h:124
Aws::EMR::Model::MetricDimension::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::MetricDimension::SetKey
void SetKey(Aws::String &&value)
Definition: MetricDimension.h:63
Aws::EMR::Model::MetricDimension::SetValue
void SetValue(const char *value)
Definition: MetricDimension.h:109
Aws::EMR::Model::MetricDimension::GetValue
const Aws::String & GetValue() const
Definition: MetricDimension.h:89
Aws::EMR::Model::MetricDimension::SetKey
void SetKey(const char *value)
Definition: MetricDimension.h:68
Aws::EMR::Model::MetricDimension::WithKey
MetricDimension & WithKey(const char *value)
Definition: MetricDimension.h:83
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::MetricDimension::MetricDimension
MetricDimension()
Aws::EMR::Model::MetricDimension::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: MetricDimension.h:53
Aws::EMR::Model::MetricDimension::SetValue
void SetValue(const Aws::String &value)
Definition: MetricDimension.h:99
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::MetricDimension::WithValue
MetricDimension & WithValue(Aws::String &&value)
Definition: MetricDimension.h:119
Aws::EMR::Model::MetricDimension::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: MetricDimension.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::MetricDimension
Definition: MetricDimension.h:37
Aws::EMR::Model::MetricDimension::WithKey
MetricDimension & WithKey(Aws::String &&value)
Definition: MetricDimension.h:78
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::MetricDimension::MetricDimension
MetricDimension(Aws::Utils::Json::JsonView jsonValue)