/** * 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 Batch { namespace Model { /** *

Describes and uniquely identifies Kubernetes resources. For example, the * compute environment that a pod runs in or the jobID for a job * running in the pod. For more information, see Understanding * Kubernetes Objects in the Kubernetes documentation.

See * Also:

AWS * API Reference

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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

Key-value pairs used to identify, sort, and organize cube resources. Can * contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and * underscores (_). Labels can be added or modified at any time. Each resource can * have multiple labels, but each key must be unique for a given object.

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