AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeyValuePair.h
1
6#pragma once
7#include <aws/elastic-inference/ElasticInference_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ElasticInference
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICINFERENCE_API KeyValuePair();
36 AWS_ELASTICINFERENCE_API KeyValuePair(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELASTICINFERENCE_API KeyValuePair& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELASTICINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetKey() const{ return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
50 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
51 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
52 inline KeyValuePair& WithKey(const Aws::String& value) { SetKey(value); return *this;}
53 inline KeyValuePair& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
54 inline KeyValuePair& WithKey(const char* value) { SetKey(value); return *this;}
56
58
61 inline int GetValue() const{ return m_value; }
62 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
63 inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
64 inline KeyValuePair& WithValue(int value) { SetValue(value); return *this;}
66 private:
67
68 Aws::String m_key;
69 bool m_keyHasBeenSet = false;
70
71 int m_value;
72 bool m_valueHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ElasticInference
77} // namespace Aws
KeyValuePair & WithKey(Aws::String &&value)
KeyValuePair & WithKey(const Aws::String &value)
KeyValuePair & WithKey(const char *value)
void SetKey(const Aws::String &value)
AWS_ELASTICINFERENCE_API KeyValuePair()
AWS_ELASTICINFERENCE_API KeyValuePair(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKey() const
AWS_ELASTICINFERENCE_API KeyValuePair & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue