AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FargateProfileSelector.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EKS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EKS_API FargateProfileSelector() = default;
40
41
43
46 inline const Aws::String& GetNamespace() const { return m_namespace; }
47 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
48 template<typename NamespaceT = Aws::String>
49 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
50 template<typename NamespaceT = Aws::String>
51 FargateProfileSelector& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
53
55
60 inline const Aws::Map<Aws::String, Aws::String>& GetLabels() const { return m_labels; }
61 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
62 template<typename LabelsT = Aws::Map<Aws::String, Aws::String>>
63 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
64 template<typename LabelsT = Aws::Map<Aws::String, Aws::String>>
65 FargateProfileSelector& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
66 template<typename LabelsKeyT = Aws::String, typename LabelsValueT = Aws::String>
67 FargateProfileSelector& AddLabels(LabelsKeyT&& key, LabelsValueT&& value) {
68 m_labelsHasBeenSet = true; m_labels.emplace(std::forward<LabelsKeyT>(key), std::forward<LabelsValueT>(value)); return *this;
69 }
71 private:
72
73 Aws::String m_namespace;
74 bool m_namespaceHasBeenSet = false;
75
77 bool m_labelsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EKS
82} // namespace Aws
AWS_EKS_API FargateProfileSelector()=default
FargateProfileSelector & WithNamespace(NamespaceT &&value)
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
FargateProfileSelector & AddLabels(LabelsKeyT &&key, LabelsValueT &&value)
AWS_EKS_API FargateProfileSelector(Aws::Utils::Json::JsonView jsonValue)
FargateProfileSelector & WithLabels(LabelsT &&value)
AWS_EKS_API FargateProfileSelector & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue