/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ECS { namespace Model { /** */ class DescribeTaskDefinitionRequest : public ECSRequest { public: AWS_ECS_API DescribeTaskDefinitionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeTaskDefinition"; } AWS_ECS_API Aws::String SerializePayload() const override; AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The family for the latest ACTIVE revision, * family and revision (family:revision) for * a specific revision in the family, or full Amazon Resource Name (ARN) of the * task definition to describe.

*/ inline const Aws::String& GetTaskDefinition() const{ return m_taskDefinition; } /** *

The family for the latest ACTIVE revision, * family and revision (family:revision) for * a specific revision in the family, or full Amazon Resource Name (ARN) of the * task definition to describe.

*/ inline bool TaskDefinitionHasBeenSet() const { return m_taskDefinitionHasBeenSet; } /** *

The family for the latest ACTIVE revision, * family and revision (family:revision) for * a specific revision in the family, or full Amazon Resource Name (ARN) of the * task definition to describe.

*/ inline void SetTaskDefinition(const Aws::String& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; } /** *

The family for the latest ACTIVE revision, * family and revision (family:revision) for * a specific revision in the family, or full Amazon Resource Name (ARN) of the * task definition to describe.

*/ inline void SetTaskDefinition(Aws::String&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = std::move(value); } /** *

The family for the latest ACTIVE revision, * family and revision (family:revision) for * a specific revision in the family, or full Amazon Resource Name (ARN) of the * task definition to describe.

*/ inline void SetTaskDefinition(const char* value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition.assign(value); } /** *

The family for the latest ACTIVE revision, * family and revision (family:revision) for * a specific revision in the family, or full Amazon Resource Name (ARN) of the * task definition to describe.

*/ inline DescribeTaskDefinitionRequest& WithTaskDefinition(const Aws::String& value) { SetTaskDefinition(value); return *this;} /** *

The family for the latest ACTIVE revision, * family and revision (family:revision) for * a specific revision in the family, or full Amazon Resource Name (ARN) of the * task definition to describe.

*/ inline DescribeTaskDefinitionRequest& WithTaskDefinition(Aws::String&& value) { SetTaskDefinition(std::move(value)); return *this;} /** *

The family for the latest ACTIVE revision, * family and revision (family:revision) for * a specific revision in the family, or full Amazon Resource Name (ARN) of the * task definition to describe.

*/ inline DescribeTaskDefinitionRequest& WithTaskDefinition(const char* value) { SetTaskDefinition(value); return *this;} /** *

Determines whether to see the resource tags for the task definition. If * TAGS is specified, the tags are included in the response. If this * field is omitted, tags aren't included in the response.

*/ inline const Aws::Vector& GetInclude() const{ return m_include; } /** *

Determines whether to see the resource tags for the task definition. If * TAGS is specified, the tags are included in the response. If this * field is omitted, tags aren't included in the response.

*/ inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; } /** *

Determines whether to see the resource tags for the task definition. If * TAGS is specified, the tags are included in the response. If this * field is omitted, tags aren't included in the response.

*/ inline void SetInclude(const Aws::Vector& value) { m_includeHasBeenSet = true; m_include = value; } /** *

Determines whether to see the resource tags for the task definition. If * TAGS is specified, the tags are included in the response. If this * field is omitted, tags aren't included in the response.

*/ inline void SetInclude(Aws::Vector&& value) { m_includeHasBeenSet = true; m_include = std::move(value); } /** *

Determines whether to see the resource tags for the task definition. If * TAGS is specified, the tags are included in the response. If this * field is omitted, tags aren't included in the response.

*/ inline DescribeTaskDefinitionRequest& WithInclude(const Aws::Vector& value) { SetInclude(value); return *this;} /** *

Determines whether to see the resource tags for the task definition. If * TAGS is specified, the tags are included in the response. If this * field is omitted, tags aren't included in the response.

*/ inline DescribeTaskDefinitionRequest& WithInclude(Aws::Vector&& value) { SetInclude(std::move(value)); return *this;} /** *

Determines whether to see the resource tags for the task definition. If * TAGS is specified, the tags are included in the response. If this * field is omitted, tags aren't included in the response.

*/ inline DescribeTaskDefinitionRequest& AddInclude(const TaskDefinitionField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; } /** *

Determines whether to see the resource tags for the task definition. If * TAGS is specified, the tags are included in the response. If this * field is omitted, tags aren't included in the response.

*/ inline DescribeTaskDefinitionRequest& AddInclude(TaskDefinitionField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; } private: Aws::String m_taskDefinition; bool m_taskDefinitionHasBeenSet = false; Aws::Vector m_include; bool m_includeHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws