/** * 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 SubmitContainerStateChangeRequest : public ECSRequest { public: AWS_ECS_API SubmitContainerStateChangeRequest(); // 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 "SubmitContainerStateChange"; } 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.

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

The short name or full ARN of the cluster that hosts the container.

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

The short name or full ARN of the cluster that hosts the container.

*/ 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.

*/ 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.

*/ 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.

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

The short name or full ARN of the cluster that hosts the container.

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

The short name or full ARN of the cluster that hosts the container.

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

The task ID or full Amazon Resource Name (ARN) of the task that hosts the * container.

*/ inline const Aws::String& GetTask() const{ return m_task; } /** *

The task ID or full Amazon Resource Name (ARN) of the task that hosts the * container.

*/ inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; } /** *

The task ID or full Amazon Resource Name (ARN) of the task that hosts the * container.

*/ inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; } /** *

The task ID or full Amazon Resource Name (ARN) of the task that hosts the * container.

*/ inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = std::move(value); } /** *

The task ID or full Amazon Resource Name (ARN) of the task that hosts the * container.

*/ inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); } /** *

The task ID or full Amazon Resource Name (ARN) of the task that hosts the * container.

*/ inline SubmitContainerStateChangeRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;} /** *

The task ID or full Amazon Resource Name (ARN) of the task that hosts the * container.

*/ inline SubmitContainerStateChangeRequest& WithTask(Aws::String&& value) { SetTask(std::move(value)); return *this;} /** *

The task ID or full Amazon Resource Name (ARN) of the task that hosts the * container.

*/ inline SubmitContainerStateChangeRequest& WithTask(const char* value) { SetTask(value); return *this;} /** *

The name of the container.

*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *

The name of the container.

*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *

The name of the container.

*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *

The name of the container.

*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *

The name of the container.

*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *

The name of the container.

*/ inline SubmitContainerStateChangeRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *

The name of the container.

*/ inline SubmitContainerStateChangeRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *

The name of the container.

*/ inline SubmitContainerStateChangeRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *

The ID of the Docker container.

*/ inline const Aws::String& GetRuntimeId() const{ return m_runtimeId; } /** *

The ID of the Docker container.

*/ inline bool RuntimeIdHasBeenSet() const { return m_runtimeIdHasBeenSet; } /** *

The ID of the Docker container.

*/ inline void SetRuntimeId(const Aws::String& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = value; } /** *

The ID of the Docker container.

*/ inline void SetRuntimeId(Aws::String&& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = std::move(value); } /** *

The ID of the Docker container.

*/ inline void SetRuntimeId(const char* value) { m_runtimeIdHasBeenSet = true; m_runtimeId.assign(value); } /** *

The ID of the Docker container.

*/ inline SubmitContainerStateChangeRequest& WithRuntimeId(const Aws::String& value) { SetRuntimeId(value); return *this;} /** *

The ID of the Docker container.

*/ inline SubmitContainerStateChangeRequest& WithRuntimeId(Aws::String&& value) { SetRuntimeId(std::move(value)); return *this;} /** *

The ID of the Docker container.

*/ inline SubmitContainerStateChangeRequest& WithRuntimeId(const char* value) { SetRuntimeId(value); return *this;} /** *

The status of the state change request.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the state change request.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the state change request.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the state change request.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the state change request.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the state change request.

*/ inline SubmitContainerStateChangeRequest& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the state change request.

*/ inline SubmitContainerStateChangeRequest& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the state change request.

*/ inline SubmitContainerStateChangeRequest& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The exit code that's returned for the state change request.

*/ inline int GetExitCode() const{ return m_exitCode; } /** *

The exit code that's returned for the state change request.

*/ inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; } /** *

The exit code that's returned for the state change request.

*/ inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; } /** *

The exit code that's returned for the state change request.

*/ inline SubmitContainerStateChangeRequest& WithExitCode(int value) { SetExitCode(value); return *this;} /** *

The reason for the state change request.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

The reason for the state change request.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason for the state change request.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason for the state change request.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason for the state change request.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

The reason for the state change request.

*/ inline SubmitContainerStateChangeRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

The reason for the state change request.

*/ inline SubmitContainerStateChangeRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

The reason for the state change request.

*/ inline SubmitContainerStateChangeRequest& WithReason(const char* value) { SetReason(value); return *this;} /** *

The network bindings of the container.

*/ inline const Aws::Vector& GetNetworkBindings() const{ return m_networkBindings; } /** *

The network bindings of the container.

*/ inline bool NetworkBindingsHasBeenSet() const { return m_networkBindingsHasBeenSet; } /** *

The network bindings of the container.

*/ inline void SetNetworkBindings(const Aws::Vector& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = value; } /** *

The network bindings of the container.

*/ inline void SetNetworkBindings(Aws::Vector&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = std::move(value); } /** *

The network bindings of the container.

*/ inline SubmitContainerStateChangeRequest& WithNetworkBindings(const Aws::Vector& value) { SetNetworkBindings(value); return *this;} /** *

The network bindings of the container.

*/ inline SubmitContainerStateChangeRequest& WithNetworkBindings(Aws::Vector&& value) { SetNetworkBindings(std::move(value)); return *this;} /** *

The network bindings of the container.

*/ inline SubmitContainerStateChangeRequest& AddNetworkBindings(const NetworkBinding& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(value); return *this; } /** *

The network bindings of the container.

*/ inline SubmitContainerStateChangeRequest& AddNetworkBindings(NetworkBinding&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(std::move(value)); return *this; } private: Aws::String m_cluster; bool m_clusterHasBeenSet = false; Aws::String m_task; bool m_taskHasBeenSet = false; Aws::String m_containerName; bool m_containerNameHasBeenSet = false; Aws::String m_runtimeId; bool m_runtimeIdHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; int m_exitCode; bool m_exitCodeHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::Vector m_networkBindings; bool m_networkBindingsHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws