AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClusterKubernetesConfigNodeDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ClusterKubernetesTaint.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
33 public:
34 AWS_SAGEMAKER_API ClusterKubernetesConfigNodeDetails() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Map<Aws::String, Aws::String>& GetCurrentLabels() const { return m_currentLabels; }
44 inline bool CurrentLabelsHasBeenSet() const { return m_currentLabelsHasBeenSet; }
45 template <typename CurrentLabelsT = Aws::Map<Aws::String, Aws::String>>
46 void SetCurrentLabels(CurrentLabelsT&& value) {
47 m_currentLabelsHasBeenSet = true;
48 m_currentLabels = std::forward<CurrentLabelsT>(value);
49 }
50 template <typename CurrentLabelsT = Aws::Map<Aws::String, Aws::String>>
52 SetCurrentLabels(std::forward<CurrentLabelsT>(value));
53 return *this;
54 }
55 template <typename CurrentLabelsKeyT = Aws::String, typename CurrentLabelsValueT = Aws::String>
56 ClusterKubernetesConfigNodeDetails& AddCurrentLabels(CurrentLabelsKeyT&& key, CurrentLabelsValueT&& value) {
57 m_currentLabelsHasBeenSet = true;
58 m_currentLabels.emplace(std::forward<CurrentLabelsKeyT>(key), std::forward<CurrentLabelsValueT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Map<Aws::String, Aws::String>& GetDesiredLabels() const { return m_desiredLabels; }
68 inline bool DesiredLabelsHasBeenSet() const { return m_desiredLabelsHasBeenSet; }
69 template <typename DesiredLabelsT = Aws::Map<Aws::String, Aws::String>>
70 void SetDesiredLabels(DesiredLabelsT&& value) {
71 m_desiredLabelsHasBeenSet = true;
72 m_desiredLabels = std::forward<DesiredLabelsT>(value);
73 }
74 template <typename DesiredLabelsT = Aws::Map<Aws::String, Aws::String>>
76 SetDesiredLabels(std::forward<DesiredLabelsT>(value));
77 return *this;
78 }
79 template <typename DesiredLabelsKeyT = Aws::String, typename DesiredLabelsValueT = Aws::String>
80 ClusterKubernetesConfigNodeDetails& AddDesiredLabels(DesiredLabelsKeyT&& key, DesiredLabelsValueT&& value) {
81 m_desiredLabelsHasBeenSet = true;
82 m_desiredLabels.emplace(std::forward<DesiredLabelsKeyT>(key), std::forward<DesiredLabelsValueT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Vector<ClusterKubernetesTaint>& GetCurrentTaints() const { return m_currentTaints; }
92 inline bool CurrentTaintsHasBeenSet() const { return m_currentTaintsHasBeenSet; }
93 template <typename CurrentTaintsT = Aws::Vector<ClusterKubernetesTaint>>
94 void SetCurrentTaints(CurrentTaintsT&& value) {
95 m_currentTaintsHasBeenSet = true;
96 m_currentTaints = std::forward<CurrentTaintsT>(value);
97 }
98 template <typename CurrentTaintsT = Aws::Vector<ClusterKubernetesTaint>>
100 SetCurrentTaints(std::forward<CurrentTaintsT>(value));
101 return *this;
102 }
103 template <typename CurrentTaintsT = ClusterKubernetesTaint>
105 m_currentTaintsHasBeenSet = true;
106 m_currentTaints.emplace_back(std::forward<CurrentTaintsT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<ClusterKubernetesTaint>& GetDesiredTaints() const { return m_desiredTaints; }
116 inline bool DesiredTaintsHasBeenSet() const { return m_desiredTaintsHasBeenSet; }
117 template <typename DesiredTaintsT = Aws::Vector<ClusterKubernetesTaint>>
118 void SetDesiredTaints(DesiredTaintsT&& value) {
119 m_desiredTaintsHasBeenSet = true;
120 m_desiredTaints = std::forward<DesiredTaintsT>(value);
121 }
122 template <typename DesiredTaintsT = Aws::Vector<ClusterKubernetesTaint>>
124 SetDesiredTaints(std::forward<DesiredTaintsT>(value));
125 return *this;
126 }
127 template <typename DesiredTaintsT = ClusterKubernetesTaint>
129 m_desiredTaintsHasBeenSet = true;
130 m_desiredTaints.emplace_back(std::forward<DesiredTaintsT>(value));
131 return *this;
132 }
134 private:
136
138
140
142 bool m_currentLabelsHasBeenSet = false;
143 bool m_desiredLabelsHasBeenSet = false;
144 bool m_currentTaintsHasBeenSet = false;
145 bool m_desiredTaintsHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace SageMaker
150} // namespace Aws
ClusterKubernetesConfigNodeDetails & WithCurrentTaints(CurrentTaintsT &&value)
ClusterKubernetesConfigNodeDetails & WithCurrentLabels(CurrentLabelsT &&value)
const Aws::Vector< ClusterKubernetesTaint > & GetCurrentTaints() const
ClusterKubernetesConfigNodeDetails & AddCurrentLabels(CurrentLabelsKeyT &&key, CurrentLabelsValueT &&value)
const Aws::Vector< ClusterKubernetesTaint > & GetDesiredTaints() const
ClusterKubernetesConfigNodeDetails & AddCurrentTaints(CurrentTaintsT &&value)
AWS_SAGEMAKER_API ClusterKubernetesConfigNodeDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetDesiredLabels() const
ClusterKubernetesConfigNodeDetails & AddDesiredLabels(DesiredLabelsKeyT &&key, DesiredLabelsValueT &&value)
ClusterKubernetesConfigNodeDetails & WithDesiredLabels(DesiredLabelsT &&value)
ClusterKubernetesConfigNodeDetails & WithDesiredTaints(DesiredTaintsT &&value)
AWS_SAGEMAKER_API ClusterKubernetesConfigNodeDetails()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterKubernetesConfigNodeDetails & AddDesiredTaints(DesiredTaintsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCurrentLabels() const
AWS_SAGEMAKER_API ClusterKubernetesConfigNodeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue