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

* */ private String status; /** *

* 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 lifecycleEvents; /** *

* Information about which environment an instance belongs to in a blue/green deployment. *

* */ private String instanceType; /** *

* 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: *

* * * @param status * The deployment status for this instance:

*