/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object representing an Fargate profile selector.See Also:
* AWS
* API Reference
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::MapThe 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::MapThe 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::MapThe 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::MapThe 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::MapThe 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