AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Taint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eks/EKS_EXPORTS.h>
9#include <aws/eks/model/TaintEffect.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EKS {
21namespace Model {
22
32class Taint {
33 public:
34 AWS_EKS_API Taint() = default;
35 AWS_EKS_API Taint(Aws::Utils::Json::JsonView jsonValue);
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 Taint& 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 Taint& WithValue(ValueT&& value) {
70 SetValue(std::forward<ValueT>(value));
71 return *this;
72 }
74
76
79 inline TaintEffect GetEffect() const { return m_effect; }
80 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
81 inline void SetEffect(TaintEffect value) {
82 m_effectHasBeenSet = true;
83 m_effect = value;
84 }
85 inline Taint& WithEffect(TaintEffect value) {
86 SetEffect(value);
87 return *this;
88 }
90 private:
91 Aws::String m_key;
92
93 Aws::String m_value;
94
96 bool m_keyHasBeenSet = false;
97 bool m_valueHasBeenSet = false;
98 bool m_effectHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EKS
103} // namespace Aws
Taint & WithValue(ValueT &&value)
Definition Taint.h:69
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:46
bool EffectHasBeenSet() const
Definition Taint.h:80
bool ValueHasBeenSet() const
Definition Taint.h:62
Taint & WithKey(KeyT &&value)
Definition Taint.h:51
void SetValue(ValueT &&value)
Definition Taint.h:64
void SetEffect(TaintEffect value)
Definition Taint.h:81
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKey() const
Definition Taint.h:43
Taint & WithEffect(TaintEffect value)
Definition Taint.h:85
const Aws::String & GetValue() const
Definition Taint.h:61
bool KeyHasBeenSet() const
Definition Taint.h:44
TaintEffect GetEffect() const
Definition Taint.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue