AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClusterKubernetesConfigDetails.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
32 public:
33 AWS_SAGEMAKER_API ClusterKubernetesConfigDetails() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Map<Aws::String, Aws::String>& GetCurrentLabels() const { return m_currentLabels; }
43 inline bool CurrentLabelsHasBeenSet() const { return m_currentLabelsHasBeenSet; }
44 template <typename CurrentLabelsT = Aws::Map<Aws::String, Aws::String>>
45 void SetCurrentLabels(CurrentLabelsT&& value) {
46 m_currentLabelsHasBeenSet = true;
47 m_currentLabels = std::forward<CurrentLabelsT>(value);
48 }
49 template <typename CurrentLabelsT = Aws::Map<Aws::String, Aws::String>>
51 SetCurrentLabels(std::forward<CurrentLabelsT>(value));
52 return *this;
53 }
54 template <typename CurrentLabelsKeyT = Aws::String, typename CurrentLabelsValueT = Aws::String>
55 ClusterKubernetesConfigDetails& AddCurrentLabels(CurrentLabelsKeyT&& key, CurrentLabelsValueT&& value) {
56 m_currentLabelsHasBeenSet = true;
57 m_currentLabels.emplace(std::forward<CurrentLabelsKeyT>(key), std::forward<CurrentLabelsValueT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Map<Aws::String, Aws::String>& GetDesiredLabels() const { return m_desiredLabels; }
67 inline bool DesiredLabelsHasBeenSet() const { return m_desiredLabelsHasBeenSet; }
68 template <typename DesiredLabelsT = Aws::Map<Aws::String, Aws::String>>
69 void SetDesiredLabels(DesiredLabelsT&& value) {
70 m_desiredLabelsHasBeenSet = true;
71 m_desiredLabels = std::forward<DesiredLabelsT>(value);
72 }
73 template <typename DesiredLabelsT = Aws::Map<Aws::String, Aws::String>>
75 SetDesiredLabels(std::forward<DesiredLabelsT>(value));
76 return *this;
77 }
78 template <typename DesiredLabelsKeyT = Aws::String, typename DesiredLabelsValueT = Aws::String>
79 ClusterKubernetesConfigDetails& AddDesiredLabels(DesiredLabelsKeyT&& key, DesiredLabelsValueT&& value) {
80 m_desiredLabelsHasBeenSet = true;
81 m_desiredLabels.emplace(std::forward<DesiredLabelsKeyT>(key), std::forward<DesiredLabelsValueT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<ClusterKubernetesTaint>& GetCurrentTaints() const { return m_currentTaints; }
91 inline bool CurrentTaintsHasBeenSet() const { return m_currentTaintsHasBeenSet; }
92 template <typename CurrentTaintsT = Aws::Vector<ClusterKubernetesTaint>>
93 void SetCurrentTaints(CurrentTaintsT&& value) {
94 m_currentTaintsHasBeenSet = true;
95 m_currentTaints = std::forward<CurrentTaintsT>(value);
96 }
97 template <typename CurrentTaintsT = Aws::Vector<ClusterKubernetesTaint>>
99 SetCurrentTaints(std::forward<CurrentTaintsT>(value));
100 return *this;
101 }
102 template <typename CurrentTaintsT = ClusterKubernetesTaint>
104 m_currentTaintsHasBeenSet = true;
105 m_currentTaints.emplace_back(std::forward<CurrentTaintsT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<ClusterKubernetesTaint>& GetDesiredTaints() const { return m_desiredTaints; }
115 inline bool DesiredTaintsHasBeenSet() const { return m_desiredTaintsHasBeenSet; }
116 template <typename DesiredTaintsT = Aws::Vector<ClusterKubernetesTaint>>
117 void SetDesiredTaints(DesiredTaintsT&& value) {
118 m_desiredTaintsHasBeenSet = true;
119 m_desiredTaints = std::forward<DesiredTaintsT>(value);
120 }
121 template <typename DesiredTaintsT = Aws::Vector<ClusterKubernetesTaint>>
123 SetDesiredTaints(std::forward<DesiredTaintsT>(value));
124 return *this;
125 }
126 template <typename DesiredTaintsT = ClusterKubernetesTaint>
128 m_desiredTaintsHasBeenSet = true;
129 m_desiredTaints.emplace_back(std::forward<DesiredTaintsT>(value));
130 return *this;
131 }
133 private:
135
137
139
141 bool m_currentLabelsHasBeenSet = false;
142 bool m_desiredLabelsHasBeenSet = false;
143 bool m_currentTaintsHasBeenSet = false;
144 bool m_desiredTaintsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace SageMaker
149} // namespace Aws
ClusterKubernetesConfigDetails & WithCurrentLabels(CurrentLabelsT &&value)
ClusterKubernetesConfigDetails & AddDesiredLabels(DesiredLabelsKeyT &&key, DesiredLabelsValueT &&value)
ClusterKubernetesConfigDetails & WithDesiredLabels(DesiredLabelsT &&value)
ClusterKubernetesConfigDetails & WithCurrentTaints(CurrentTaintsT &&value)
AWS_SAGEMAKER_API ClusterKubernetesConfigDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ClusterKubernetesTaint > & GetDesiredTaints() const
ClusterKubernetesConfigDetails & AddCurrentTaints(CurrentTaintsT &&value)
ClusterKubernetesConfigDetails & WithDesiredTaints(DesiredTaintsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCurrentLabels() const
AWS_SAGEMAKER_API ClusterKubernetesConfigDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ClusterKubernetesConfigDetails()=default
ClusterKubernetesConfigDetails & AddCurrentLabels(CurrentLabelsKeyT &&key, CurrentLabelsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDesiredLabels() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterKubernetesConfigDetails & AddDesiredTaints(DesiredTaintsT &&value)
const Aws::Vector< ClusterKubernetesTaint > & GetCurrentTaints() const
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