/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ecs.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SubmitContainerStateChangeRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The short name or full ARN of the cluster that hosts the container. *
*/ private String cluster; /** ** The task ID or full Amazon Resource Name (ARN) of the task that hosts the container. *
*/ private String task; /** ** The name of the container. *
*/ private String containerName; /** ** The ID of the Docker container. *
*/ private String runtimeId; /** ** The status of the state change request. *
*/ private String status; /** ** The exit code that's returned for the state change request. *
*/ private Integer exitCode; /** ** The reason for the state change request. *
*/ private String reason; /** ** The network bindings of the container. *
*/ private com.amazonaws.internal.SdkInternalList* The short name or full ARN of the cluster that hosts the container. *
* * @param cluster * The short name or full ARN of the cluster that hosts the container. */ public void setCluster(String cluster) { this.cluster = cluster; } /** ** The short name or full ARN of the cluster that hosts the container. *
* * @return The short name or full ARN of the cluster that hosts the container. */ public String getCluster() { return this.cluster; } /** ** The short name or full ARN of the cluster that hosts the container. *
* * @param cluster * The short name or full ARN of the cluster that hosts the container. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitContainerStateChangeRequest withCluster(String cluster) { setCluster(cluster); return this; } /** ** The task ID or full Amazon Resource Name (ARN) of the task that hosts the container. *
* * @param task * The task ID or full Amazon Resource Name (ARN) of the task that hosts the container. */ public void setTask(String task) { this.task = task; } /** ** The task ID or full Amazon Resource Name (ARN) of the task that hosts the container. *
* * @return The task ID or full Amazon Resource Name (ARN) of the task that hosts the container. */ public String getTask() { return this.task; } /** ** The task ID or full Amazon Resource Name (ARN) of the task that hosts the container. *
* * @param task * The task ID or full Amazon Resource Name (ARN) of the task that hosts the container. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitContainerStateChangeRequest withTask(String task) { setTask(task); return this; } /** ** The name of the container. *
* * @param containerName * The name of the container. */ public void setContainerName(String containerName) { this.containerName = containerName; } /** ** The name of the container. *
* * @return The name of the container. */ public String getContainerName() { return this.containerName; } /** ** The name of the container. *
* * @param containerName * The name of the container. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitContainerStateChangeRequest withContainerName(String containerName) { setContainerName(containerName); return this; } /** ** The ID of the Docker container. *
* * @param runtimeId * The ID of the Docker container. */ public void setRuntimeId(String runtimeId) { this.runtimeId = runtimeId; } /** ** The ID of the Docker container. *
* * @return The ID of the Docker container. */ public String getRuntimeId() { return this.runtimeId; } /** ** The ID of the Docker container. *
* * @param runtimeId * The ID of the Docker container. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitContainerStateChangeRequest withRuntimeId(String runtimeId) { setRuntimeId(runtimeId); return this; } /** ** The status of the state change request. *
* * @param status * The status of the state change request. */ public void setStatus(String status) { this.status = status; } /** ** The status of the state change request. *
* * @return The status of the state change request. */ public String getStatus() { return this.status; } /** ** The status of the state change request. *
* * @param status * The status of the state change request. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitContainerStateChangeRequest withStatus(String status) { setStatus(status); return this; } /** ** The exit code that's returned for the state change request. *
* * @param exitCode * The exit code that's returned for the state change request. */ public void setExitCode(Integer exitCode) { this.exitCode = exitCode; } /** ** The exit code that's returned for the state change request. *
* * @return The exit code that's returned for the state change request. */ public Integer getExitCode() { return this.exitCode; } /** ** The exit code that's returned for the state change request. *
* * @param exitCode * The exit code that's returned for the state change request. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitContainerStateChangeRequest withExitCode(Integer exitCode) { setExitCode(exitCode); return this; } /** ** The reason for the state change request. *
* * @param reason * The reason for the state change request. */ public void setReason(String reason) { this.reason = reason; } /** ** The reason for the state change request. *
* * @return The reason for the state change request. */ public String getReason() { return this.reason; } /** ** The reason for the state change request. *
* * @param reason * The reason for the state change request. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitContainerStateChangeRequest withReason(String reason) { setReason(reason); return this; } /** ** The network bindings of the container. *
* * @return The network bindings of the container. */ public java.util.List* The network bindings of the container. *
* * @param networkBindings * The network bindings of the container. */ public void setNetworkBindings(java.util.Collection* The network bindings of the container. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNetworkBindings(java.util.Collection)} or {@link #withNetworkBindings(java.util.Collection)} if you * want to override the existing values. *
* * @param networkBindings * The network bindings of the container. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitContainerStateChangeRequest withNetworkBindings(NetworkBinding... networkBindings) { if (this.networkBindings == null) { setNetworkBindings(new com.amazonaws.internal.SdkInternalList* The network bindings of the container. *
* * @param networkBindings * The network bindings of the container. * @return Returns a reference to this object so that method calls can be chained together. */ public SubmitContainerStateChangeRequest withNetworkBindings(java.util.Collection