/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace EKS { namespace Model { /** *

An object representing an Fargate profile selector.

See Also:

* AWS * API Reference

*/ class FargateProfileSelector { public: AWS_EKS_API FargateProfileSelector(); AWS_EKS_API FargateProfileSelector(Aws::Utils::Json::JsonView jsonValue); AWS_EKS_API FargateProfileSelector& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Kubernetes namespace that the selector should match.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The Kubernetes namespace that the selector should match.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The Kubernetes namespace that the selector should match.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

The Kubernetes namespace that the selector should match.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

The Kubernetes namespace that the selector should match.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

The Kubernetes namespace that the selector should match.

*/ inline FargateProfileSelector& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The Kubernetes namespace that the selector should match.

*/ inline FargateProfileSelector& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The Kubernetes namespace that the selector should match.

*/ inline FargateProfileSelector& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline const Aws::Map& GetLabels() const{ return m_labels; } /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; } /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline void SetLabels(const Aws::Map& value) { m_labelsHasBeenSet = true; m_labels = value; } /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline void SetLabels(Aws::Map&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); } /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline FargateProfileSelector& WithLabels(const Aws::Map& value) { SetLabels(value); return *this;} /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline FargateProfileSelector& WithLabels(Aws::Map&& value) { SetLabels(std::move(value)); return *this;} /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline FargateProfileSelector& AddLabels(const Aws::String& key, const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, value); return *this; } /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline FargateProfileSelector& AddLabels(Aws::String&& key, const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), value); return *this; } /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline FargateProfileSelector& AddLabels(const Aws::String& key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, std::move(value)); return *this; } /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline FargateProfileSelector& AddLabels(Aws::String&& key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), std::move(value)); return *this; } /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline FargateProfileSelector& AddLabels(const char* key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, std::move(value)); return *this; } /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline FargateProfileSelector& AddLabels(Aws::String&& key, const char* value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), value); return *this; } /** *

The Kubernetes labels that the selector should match. A pod must contain all * of the labels that are specified in the selector for it to be considered a * match.

*/ inline FargateProfileSelector& AddLabels(const char* key, const char* value) { m_labelsHasBeenSet = true; m_labels.emplace(key, value); return *this; } private: Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Aws::Map m_labels; bool m_labelsHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws