AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClusterKubernetesTaint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/ClusterKubernetesTaintEffect.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API ClusterKubernetesTaint() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 template <typename KeyT = Aws::String>
43 void SetKey(KeyT&& value) {
44 m_keyHasBeenSet = true;
45 m_key = std::forward<KeyT>(value);
46 }
47 template <typename KeyT = Aws::String>
49 SetKey(std::forward<KeyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
77 inline ClusterKubernetesTaintEffect GetEffect() const { return m_effect; }
78 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
80 m_effectHasBeenSet = true;
81 m_effect = value;
82 }
84 SetEffect(value);
85 return *this;
86 }
88 private:
89 Aws::String m_key;
90
91 Aws::String m_value;
92
94 bool m_keyHasBeenSet = false;
95 bool m_valueHasBeenSet = false;
96 bool m_effectHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace SageMaker
101} // namespace Aws
ClusterKubernetesTaint & WithKey(KeyT &&value)
ClusterKubernetesTaint & WithValue(ValueT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEffect(ClusterKubernetesTaintEffect value)
AWS_SAGEMAKER_API ClusterKubernetesTaint(Aws::Utils::Json::JsonView jsonValue)
ClusterKubernetesTaintEffect GetEffect() const
ClusterKubernetesTaint & WithEffect(ClusterKubernetesTaintEffect value)
AWS_SAGEMAKER_API ClusterKubernetesTaint()=default
AWS_SAGEMAKER_API ClusterKubernetesTaint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue