AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
FargateProfileSelector.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/eks/EKS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EKS {
21namespace Model {
22
30 public:
31 AWS_EKS_API FargateProfileSelector() = default;
35
37
40 inline const Aws::String& GetNamespace() const { return m_namespace; }
41 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
42 template <typename NamespaceT = Aws::String>
43 void SetNamespace(NamespaceT&& value) {
44 m_namespaceHasBeenSet = true;
45 m_namespace = std::forward<NamespaceT>(value);
46 }
47 template <typename NamespaceT = Aws::String>
49 SetNamespace(std::forward<NamespaceT>(value));
50 return *this;
51 }
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) {
64 m_labelsHasBeenSet = true;
65 m_labels = std::forward<LabelsT>(value);
66 }
67 template <typename LabelsT = Aws::Map<Aws::String, Aws::String>>
69 SetLabels(std::forward<LabelsT>(value));
70 return *this;
71 }
72 template <typename LabelsKeyT = Aws::String, typename LabelsValueT = Aws::String>
73 FargateProfileSelector& AddLabels(LabelsKeyT&& key, LabelsValueT&& value) {
74 m_labelsHasBeenSet = true;
75 m_labels.emplace(std::forward<LabelsKeyT>(key), std::forward<LabelsValueT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_namespace;
81
83 bool m_namespaceHasBeenSet = false;
84 bool m_labelsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EKS
89} // 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