AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Taint.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/model/TaintEffect.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EKS
23{
24namespace Model
25{
26
36 class Taint
37 {
38 public:
39 AWS_EKS_API Taint() = default;
40 AWS_EKS_API Taint(Aws::Utils::Json::JsonView jsonValue);
43
44
46
49 inline const Aws::String& GetKey() const { return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 template<typename KeyT = Aws::String>
52 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
53 template<typename KeyT = Aws::String>
54 Taint& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
65 template<typename ValueT = Aws::String>
66 Taint& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
68
70
73 inline TaintEffect GetEffect() const { return m_effect; }
74 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
75 inline void SetEffect(TaintEffect value) { m_effectHasBeenSet = true; m_effect = value; }
76 inline Taint& WithEffect(TaintEffect value) { SetEffect(value); return *this;}
78 private:
79
80 Aws::String m_key;
81 bool m_keyHasBeenSet = false;
82
83 Aws::String m_value;
84 bool m_valueHasBeenSet = false;
85
87 bool m_effectHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EKS
92} // namespace Aws
Taint & WithValue(ValueT &&value)
Definition Taint.h:66
AWS_EKS_API Taint(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API Taint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API Taint()=default
void SetKey(KeyT &&value)
Definition Taint.h:52
bool EffectHasBeenSet() const
Definition Taint.h:74
bool ValueHasBeenSet() const
Definition Taint.h:62
Taint & WithKey(KeyT &&value)
Definition Taint.h:54
void SetValue(ValueT &&value)
Definition Taint.h:64
void SetEffect(TaintEffect value)
Definition Taint.h:75
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKey() const
Definition Taint.h:49
Taint & WithEffect(TaintEffect value)
Definition Taint.h:76
const Aws::String & GetValue() const
Definition Taint.h:61
bool KeyHasBeenSet() const
Definition Taint.h:50
TaintEffect GetEffect() const
Definition Taint.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue