/* * 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 an instance in a deployment. *
* * @see AWS API * Documentation */ @Deprecated @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InstanceSummary implements Serializable, Cloneable, StructuredPojo { /** ** The unique ID of a deployment. *
*/ private String deploymentId; /** ** The instance ID. *
*/ private String instanceId; /** ** The deployment status for this instance: *
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* A timestamp that indicates when the instance information was last updated. *
*/ private java.util.Date lastUpdatedAt; /** ** A list of lifecycle events for this instance. *
*/ private com.amazonaws.internal.SdkInternalList* Information about which environment an instance belongs to in a blue/green deployment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
** 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 InstanceSummary withDeploymentId(String deploymentId) { setDeploymentId(deploymentId); return this; } /** ** The instance ID. *
* * @param instanceId * The instance ID. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** ** The instance ID. *
* * @return The instance ID. */ public String getInstanceId() { return this.instanceId; } /** ** The instance ID. *
* * @param instanceId * The instance ID. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceSummary withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** ** The deployment status for this instance: *
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* The deployment status for this instance: *
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* The deployment status for this instance: *
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* The deployment status for this instance: *
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* The deployment status for this instance: *
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* Pending
: The deployment is pending for this instance.
*
* In Progress
: The deployment is in progress for this instance.
*
* Succeeded
: The deployment has succeeded for this instance.
*
* Failed
: The deployment has failed for this instance.
*
* Skipped
: The deployment has been skipped for this instance.
*
* Unknown
: The deployment status is unknown for this instance.
*
* A timestamp that indicates when the instance information was last updated. *
* * @param lastUpdatedAt * A timestamp that indicates when the instance information was last updated. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** ** A timestamp that indicates when the instance information was last updated. *
* * @return A timestamp that indicates when the instance information was last updated. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** ** A timestamp that indicates when the instance information was last updated. *
* * @param lastUpdatedAt * A timestamp that indicates when the instance information was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceSummary withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** ** A list of lifecycle events for this instance. *
* * @return A list of lifecycle events for this instance. */ public java.util.List* A list of lifecycle events for this instance. *
* * @param lifecycleEvents * A list of lifecycle events for this instance. */ public void setLifecycleEvents(java.util.Collection* A list of lifecycle events for this instance. *
** 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 * A list of lifecycle events for this instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceSummary withLifecycleEvents(LifecycleEvent... lifecycleEvents) { if (this.lifecycleEvents == null) { setLifecycleEvents(new com.amazonaws.internal.SdkInternalList* A list of lifecycle events for this instance. *
* * @param lifecycleEvents * A list of lifecycle events for this instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceSummary withLifecycleEvents(java.util.Collection* Information about which environment an instance belongs to in a blue/green deployment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
** Information about which environment an instance belongs to in a blue/green deployment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
** Information about which environment an instance belongs to in a blue/green deployment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
** Information about which environment an instance belongs to in a blue/green deployment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
** Information about which environment an instance belongs to in a blue/green deployment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
** BLUE: The instance is part of the original environment. *
** GREEN: The instance is part of the replacement environment. *
*