/* * 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.codedeploy.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about the target of an Amazon ECS deployment. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ECSTarget implements Serializable, Cloneable, StructuredPojo { /** ** The unique ID of a deployment. *
*/ private String deploymentId; /** *
* The unique ID of a deployment target that has a type of ecsTarget
.
*
* The Amazon Resource Name (ARN) of the target. *
*/ private String targetArn; /** ** The date and time when the target Amazon ECS application was updated by a deployment. *
*/ private java.util.Date lastUpdatedAt; /** ** The lifecycle events of the deployment to this target Amazon ECS application. *
*/ private com.amazonaws.internal.SdkInternalList* The status an Amazon ECS deployment's target ECS application. *
*/ private String status; /** *
* The ECSTaskSet
objects associated with the ECS target.
*
* The unique ID of a deployment. *
* * @param deploymentId * The unique ID of a deployment. */ public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } /** ** The unique ID of a deployment. *
* * @return The unique ID of a deployment. */ public String getDeploymentId() { return this.deploymentId; } /** ** The unique ID of a deployment. *
* * @param deploymentId * The unique ID of a deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSTarget withDeploymentId(String deploymentId) { setDeploymentId(deploymentId); return this; } /** *
* The unique ID of a deployment target that has a type of ecsTarget
.
*
ecsTarget
.
*/
public void setTargetId(String targetId) {
this.targetId = targetId;
}
/**
*
* The unique ID of a deployment target that has a type of ecsTarget
.
*
ecsTarget
.
*/
public String getTargetId() {
return this.targetId;
}
/**
*
* The unique ID of a deployment target that has a type of ecsTarget
.
*
ecsTarget
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ECSTarget withTargetId(String targetId) {
setTargetId(targetId);
return this;
}
/**
* * The Amazon Resource Name (ARN) of the target. *
* * @param targetArn * The Amazon Resource Name (ARN) of the target. */ public void setTargetArn(String targetArn) { this.targetArn = targetArn; } /** ** The Amazon Resource Name (ARN) of the target. *
* * @return The Amazon Resource Name (ARN) of the target. */ public String getTargetArn() { return this.targetArn; } /** ** The Amazon Resource Name (ARN) of the target. *
* * @param targetArn * The Amazon Resource Name (ARN) of the target. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSTarget withTargetArn(String targetArn) { setTargetArn(targetArn); return this; } /** ** The date and time when the target Amazon ECS application was updated by a deployment. *
* * @param lastUpdatedAt * The date and time when the target Amazon ECS application was updated by a deployment. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** ** The date and time when the target Amazon ECS application was updated by a deployment. *
* * @return The date and time when the target Amazon ECS application was updated by a deployment. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** ** The date and time when the target Amazon ECS application was updated by a deployment. *
* * @param lastUpdatedAt * The date and time when the target Amazon ECS application was updated by a deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSTarget withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** ** The lifecycle events of the deployment to this target Amazon ECS application. *
* * @return The lifecycle events of the deployment to this target Amazon ECS application. */ public java.util.List* The lifecycle events of the deployment to this target Amazon ECS application. *
* * @param lifecycleEvents * The lifecycle events of the deployment to this target Amazon ECS application. */ public void setLifecycleEvents(java.util.Collection* The lifecycle events of the deployment to this target Amazon ECS application. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLifecycleEvents(java.util.Collection)} or {@link #withLifecycleEvents(java.util.Collection)} if you * want to override the existing values. *
* * @param lifecycleEvents * The lifecycle events of the deployment to this target Amazon ECS application. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSTarget withLifecycleEvents(LifecycleEvent... lifecycleEvents) { if (this.lifecycleEvents == null) { setLifecycleEvents(new com.amazonaws.internal.SdkInternalList* The lifecycle events of the deployment to this target Amazon ECS application. *
* * @param lifecycleEvents * The lifecycle events of the deployment to this target Amazon ECS application. * @return Returns a reference to this object so that method calls can be chained together. */ public ECSTarget withLifecycleEvents(java.util.Collection* The status an Amazon ECS deployment's target ECS application. *
* * @param status * The status an Amazon ECS deployment's target ECS application. * @see TargetStatus */ public void setStatus(String status) { this.status = status; } /** ** The status an Amazon ECS deployment's target ECS application. *
* * @return The status an Amazon ECS deployment's target ECS application. * @see TargetStatus */ public String getStatus() { return this.status; } /** ** The status an Amazon ECS deployment's target ECS application. *
* * @param status * The status an Amazon ECS deployment's target ECS application. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetStatus */ public ECSTarget withStatus(String status) { setStatus(status); return this; } /** ** The status an Amazon ECS deployment's target ECS application. *
* * @param status * The status an Amazon ECS deployment's target ECS application. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetStatus */ public ECSTarget withStatus(TargetStatus status) { this.status = status.toString(); return this; } /** *
* The ECSTaskSet
objects associated with the ECS target.
*
ECSTaskSet
objects associated with the ECS target.
*/
public java.util.List
* The ECSTaskSet
objects associated with the ECS target.
*
ECSTaskSet
objects associated with the ECS target.
*/
public void setTaskSetsInfo(java.util.Collection
* The ECSTaskSet
objects associated with the ECS target.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTaskSetsInfo(java.util.Collection)} or {@link #withTaskSetsInfo(java.util.Collection)} if you want to * override the existing values. *
* * @param taskSetsInfo * TheECSTaskSet
objects associated with the ECS target.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ECSTarget withTaskSetsInfo(ECSTaskSet... taskSetsInfo) {
if (this.taskSetsInfo == null) {
setTaskSetsInfo(new com.amazonaws.internal.SdkInternalList
* The ECSTaskSet
objects associated with the ECS target.
*
ECSTaskSet
objects associated with the ECS target.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ECSTarget withTaskSetsInfo(java.util.Collection