/** * 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 PutAttributesRequest : public ECSRequest { public: AWS_ECS_API PutAttributesRequest(); // 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 "PutAttributes"; } AWS_ECS_API Aws::String SerializePayload() const override; AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The short name or full Amazon Resource Name (ARN) of the cluster that * contains the resource to apply attributes. If you do not specify a cluster, the * default cluster is assumed.

*/ inline const Aws::String& GetCluster() const{ return m_cluster; } /** *

The short name or full Amazon Resource Name (ARN) of the cluster that * contains the resource to apply attributes. If you do not specify a cluster, the * default cluster is assumed.

*/ inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; } /** *

The short name or full Amazon Resource Name (ARN) of the cluster that * contains the resource to apply attributes. If you do not specify a cluster, the * default cluster is assumed.

*/ inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; } /** *

The short name or full Amazon Resource Name (ARN) of the cluster that * contains the resource to apply attributes. If you do not specify a cluster, the * default cluster is assumed.

*/ inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); } /** *

The short name or full Amazon Resource Name (ARN) of the cluster that * contains the resource to apply attributes. If you do not specify a cluster, the * default cluster is assumed.

*/ inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); } /** *

The short name or full Amazon Resource Name (ARN) of the cluster that * contains the resource to apply attributes. If you do not specify a cluster, the * default cluster is assumed.

*/ inline PutAttributesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;} /** *

The short name or full Amazon Resource Name (ARN) of the cluster that * contains the resource to apply attributes. If you do not specify a cluster, the * default cluster is assumed.

*/ inline PutAttributesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;} /** *

The short name or full Amazon Resource Name (ARN) of the cluster that * contains the resource to apply attributes. If you do not specify a cluster, the * default cluster is assumed.

*/ inline PutAttributesRequest& WithCluster(const char* value) { SetCluster(value); return *this;} /** *

The attributes to apply to your resource. You can specify up to 10 custom * attributes for each resource. You can specify up to 10 attributes in a single * call.

*/ inline const Aws::Vector& GetAttributes() const{ return m_attributes; } /** *

The attributes to apply to your resource. You can specify up to 10 custom * attributes for each resource. You can specify up to 10 attributes in a single * call.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

The attributes to apply to your resource. You can specify up to 10 custom * attributes for each resource. You can specify up to 10 attributes in a single * call.

*/ inline void SetAttributes(const Aws::Vector& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

The attributes to apply to your resource. You can specify up to 10 custom * attributes for each resource. You can specify up to 10 attributes in a single * call.

*/ inline void SetAttributes(Aws::Vector&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

The attributes to apply to your resource. You can specify up to 10 custom * attributes for each resource. You can specify up to 10 attributes in a single * call.

*/ inline PutAttributesRequest& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

The attributes to apply to your resource. You can specify up to 10 custom * attributes for each resource. You can specify up to 10 attributes in a single * call.

*/ inline PutAttributesRequest& WithAttributes(Aws::Vector&& value) { SetAttributes(std::move(value)); return *this;} /** *

The attributes to apply to your resource. You can specify up to 10 custom * attributes for each resource. You can specify up to 10 attributes in a single * call.

*/ inline PutAttributesRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *

The attributes to apply to your resource. You can specify up to 10 custom * attributes for each resource. You can specify up to 10 attributes in a single * call.

*/ inline PutAttributesRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } private: Aws::String m_cluster; bool m_clusterHasBeenSet = false; Aws::Vector m_attributes; bool m_attributesHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws