/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ECS { namespace Model { class AWS_ECS_API DescribeTaskDefinitionResult { public: DescribeTaskDefinitionResult(); DescribeTaskDefinitionResult(const Aws::AmazonWebServiceResult& result); DescribeTaskDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The full task definition description.

*/ inline const TaskDefinition& GetTaskDefinition() const{ return m_taskDefinition; } /** *

The full task definition description.

*/ inline void SetTaskDefinition(const TaskDefinition& value) { m_taskDefinition = value; } /** *

The full task definition description.

*/ inline void SetTaskDefinition(TaskDefinition&& value) { m_taskDefinition = std::move(value); } /** *

The full task definition description.

*/ inline DescribeTaskDefinitionResult& WithTaskDefinition(const TaskDefinition& value) { SetTaskDefinition(value); return *this;} /** *

The full task definition description.

*/ inline DescribeTaskDefinitionResult& WithTaskDefinition(TaskDefinition&& value) { SetTaskDefinition(std::move(value)); return *this;} /** *

The metadata that is applied to the task definition to help you categorize * and organize them. Each tag consists of a key and an optional value, both of * which you define.

The following basic restrictions apply to tags:

*
  • Maximum number of tags per resource - 50

  • For each * resource, each tag key must be unique, and each tag key can have only one * value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for AWS use. You * cannot edit or delete tag keys or values with this prefix. Tags with this prefix * do not count against your tags per resource limit.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The metadata that is applied to the task definition to help you categorize * and organize them. Each tag consists of a key and an optional value, both of * which you define.

The following basic restrictions apply to tags:

*
  • Maximum number of tags per resource - 50

  • For each * resource, each tag key must be unique, and each tag key can have only one * value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for AWS use. You * cannot edit or delete tag keys or values with this prefix. Tags with this prefix * do not count against your tags per resource limit.

*/ inline void SetTags(const Aws::Vector& value) { m_tags = value; } /** *

The metadata that is applied to the task definition to help you categorize * and organize them. Each tag consists of a key and an optional value, both of * which you define.

The following basic restrictions apply to tags:

*
  • Maximum number of tags per resource - 50

  • For each * resource, each tag key must be unique, and each tag key can have only one * value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for AWS use. You * cannot edit or delete tag keys or values with this prefix. Tags with this prefix * do not count against your tags per resource limit.

*/ inline void SetTags(Aws::Vector&& value) { m_tags = std::move(value); } /** *

The metadata that is applied to the task definition to help you categorize * and organize them. Each tag consists of a key and an optional value, both of * which you define.

The following basic restrictions apply to tags:

*
  • Maximum number of tags per resource - 50

  • For each * resource, each tag key must be unique, and each tag key can have only one * value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for AWS use. You * cannot edit or delete tag keys or values with this prefix. Tags with this prefix * do not count against your tags per resource limit.

*/ inline DescribeTaskDefinitionResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The metadata that is applied to the task definition to help you categorize * and organize them. Each tag consists of a key and an optional value, both of * which you define.

The following basic restrictions apply to tags:

*
  • Maximum number of tags per resource - 50

  • For each * resource, each tag key must be unique, and each tag key can have only one * value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for AWS use. You * cannot edit or delete tag keys or values with this prefix. Tags with this prefix * do not count against your tags per resource limit.

*/ inline DescribeTaskDefinitionResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The metadata that is applied to the task definition to help you categorize * and organize them. Each tag consists of a key and an optional value, both of * which you define.

The following basic restrictions apply to tags:

*
  • Maximum number of tags per resource - 50

  • For each * resource, each tag key must be unique, and each tag key can have only one * value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for AWS use. You * cannot edit or delete tag keys or values with this prefix. Tags with this prefix * do not count against your tags per resource limit.

*/ inline DescribeTaskDefinitionResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

The metadata that is applied to the task definition to help you categorize * and organize them. Each tag consists of a key and an optional value, both of * which you define.

The following basic restrictions apply to tags:

*
  • Maximum number of tags per resource - 50

  • For each * resource, each tag key must be unique, and each tag key can have only one * value.

  • Maximum key length - 128 Unicode characters in * UTF-8

  • Maximum value length - 256 Unicode characters in * UTF-8

  • If your tagging schema is used across multiple services * and resources, remember that other services may have restrictions on allowed * characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @.

  • *
  • Tag keys and values are case-sensitive.

  • Do not use * aws:, AWS:, or any upper or lowercase combination of * such as a prefix for either keys or values as it is reserved for AWS use. You * cannot edit or delete tag keys or values with this prefix. Tags with this prefix * do not count against your tags per resource limit.

*/ inline DescribeTaskDefinitionResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } private: TaskDefinition m_taskDefinition; Aws::Vector m_tags; }; } // namespace Model } // namespace ECS } // namespace Aws