This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ecs/include/aws/ecs/model/DescribeTaskDefinitionResult.h

213 lines
12 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ecs/ECS_EXPORTS.h>
#include <aws/ecs/model/TaskDefinition.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ecs/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
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<Aws::Utils::Json::JsonValue>& result);
DescribeTaskDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The full task definition description.</p>
*/
inline const TaskDefinition& GetTaskDefinition() const{ return m_taskDefinition; }
/**
* <p>The full task definition description.</p>
*/
inline void SetTaskDefinition(const TaskDefinition& value) { m_taskDefinition = value; }
/**
* <p>The full task definition description.</p>
*/
inline void SetTaskDefinition(TaskDefinition&& value) { m_taskDefinition = std::move(value); }
/**
* <p>The full task definition description.</p>
*/
inline DescribeTaskDefinitionResult& WithTaskDefinition(const TaskDefinition& value) { SetTaskDefinition(value); return *this;}
/**
* <p>The full task definition description.</p>
*/
inline DescribeTaskDefinitionResult& WithTaskDefinition(TaskDefinition&& value) { SetTaskDefinition(std::move(value)); return *this;}
/**
* <p>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.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50</p> </li> <li> <p>For each
* resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8</p> </li> <li> <p>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: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case-sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, 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.</p> </li> </ul>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>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.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50</p> </li> <li> <p>For each
* resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8</p> </li> <li> <p>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: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case-sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, 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.</p> </li> </ul>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
/**
* <p>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.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50</p> </li> <li> <p>For each
* resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8</p> </li> <li> <p>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: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case-sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, 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.</p> </li> </ul>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
/**
* <p>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.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50</p> </li> <li> <p>For each
* resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8</p> </li> <li> <p>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: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case-sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, 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.</p> </li> </ul>
*/
inline DescribeTaskDefinitionResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>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.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50</p> </li> <li> <p>For each
* resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8</p> </li> <li> <p>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: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case-sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, 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.</p> </li> </ul>
*/
inline DescribeTaskDefinitionResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>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.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50</p> </li> <li> <p>For each
* resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8</p> </li> <li> <p>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: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case-sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, 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.</p> </li> </ul>
*/
inline DescribeTaskDefinitionResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
/**
* <p>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.</p> <p>The following basic restrictions apply to tags:</p>
* <ul> <li> <p>Maximum number of tags per resource - 50</p> </li> <li> <p>For each
* resource, each tag key must be unique, and each tag key can have only one
* value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in
* UTF-8</p> </li> <li> <p>Maximum value length - 256 Unicode characters in
* UTF-8</p> </li> <li> <p>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: + - = . _ : / @.</p> </li>
* <li> <p>Tag keys and values are case-sensitive.</p> </li> <li> <p>Do not use
* <code>aws:</code>, <code>AWS:</code>, 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.</p> </li> </ul>
*/
inline DescribeTaskDefinitionResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
private:
TaskDefinition m_taskDefinition;
Aws::Vector<Tag> m_tags;
};
} // namespace Model
} // namespace ECS
} // namespace Aws