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

The short name or full ARN of the cluster that hosts the container instance * the attachment belongs to.

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

The short name or full ARN of the cluster that hosts the container instance * the attachment belongs to.

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

The short name or full ARN of the cluster that hosts the container instance * the attachment belongs to.

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

The short name or full ARN of the cluster that hosts the container instance * the attachment belongs to.

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

The short name or full ARN of the cluster that hosts the container instance * the attachment belongs to.

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

The short name or full ARN of the cluster that hosts the container instance * the attachment belongs to.

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

The short name or full ARN of the cluster that hosts the container instance * the attachment belongs to.

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

The short name or full ARN of the cluster that hosts the container instance * the attachment belongs to.

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

Any attachments associated with the state change request.

*/ inline const Aws::Vector& GetAttachments() const{ return m_attachments; } /** *

Any attachments associated with the state change request.

*/ inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; } /** *

Any attachments associated with the state change request.

*/ inline void SetAttachments(const Aws::Vector& value) { m_attachmentsHasBeenSet = true; m_attachments = value; } /** *

Any attachments associated with the state change request.

*/ inline void SetAttachments(Aws::Vector&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); } /** *

Any attachments associated with the state change request.

*/ inline SubmitAttachmentStateChangesRequest& WithAttachments(const Aws::Vector& value) { SetAttachments(value); return *this;} /** *

Any attachments associated with the state change request.

*/ inline SubmitAttachmentStateChangesRequest& WithAttachments(Aws::Vector&& value) { SetAttachments(std::move(value)); return *this;} /** *

Any attachments associated with the state change request.

*/ inline SubmitAttachmentStateChangesRequest& AddAttachments(const AttachmentStateChange& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; } /** *

Any attachments associated with the state change request.

*/ inline SubmitAttachmentStateChangesRequest& AddAttachments(AttachmentStateChange&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; } private: Aws::String m_cluster; bool m_clusterHasBeenSet = false; Aws::Vector m_attachments; bool m_attachmentsHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws