AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClusterKubernetesConfig.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 ClusterKubernetesConfig() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Map<Aws::String, Aws::String>& GetLabels() const { return m_labels; }
43 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
44 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
45 void SetLabels(LabelsT&& value) {
46 m_labelsHasBeenSet = true;
47 m_labels = std::forward<LabelsT>(value);
48 }
49 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
51 SetLabels(std::forward<LabelsT>(value));
52 return *this;
53 }
54 template <typename LabelsKeyT = Aws::String, typename LabelsValueT = Aws::String>
55 ClusterKubernetesConfig& AddLabels(LabelsKeyT&& key, LabelsValueT&& value) {
56 m_labelsHasBeenSet = true;
57 m_labels.emplace(std::forward<LabelsKeyT>(key), std::forward<LabelsValueT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<ClusterKubernetesTaint>& GetTaints() const { return m_taints; }
67 inline bool TaintsHasBeenSet() const { return m_taintsHasBeenSet; }
68 template <typename TaintsT = Aws::Vector<ClusterKubernetesTaint>>
69 void SetTaints(TaintsT&& value) {
70 m_taintsHasBeenSet = true;
71 m_taints = std::forward<TaintsT>(value);
72 }
73 template <typename TaintsT = Aws::Vector<ClusterKubernetesTaint>>
75 SetTaints(std::forward<TaintsT>(value));
76 return *this;
77 }
78 template <typename TaintsT = ClusterKubernetesTaint>
80 m_taintsHasBeenSet = true;
81 m_taints.emplace_back(std::forward<TaintsT>(value));
82 return *this;
83 }
85 private:
87
89 bool m_labelsHasBeenSet = false;
90 bool m_taintsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace SageMaker
95} // namespace Aws
ClusterKubernetesConfig & WithTaints(TaintsT &&value)
const Aws::Vector< ClusterKubernetesTaint > & GetTaints() const
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
ClusterKubernetesConfig & WithLabels(LabelsT &&value)
AWS_SAGEMAKER_API ClusterKubernetesConfig(Aws::Utils::Json::JsonView jsonValue)
ClusterKubernetesConfig & AddTaints(TaintsT &&value)
AWS_SAGEMAKER_API ClusterKubernetesConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ClusterKubernetesConfig()=default
ClusterKubernetesConfig & AddLabels(LabelsKeyT &&key, LabelsValueT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() 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