public class InstanceSummary extends Object implements Serializable, Cloneable
Information about an instance in a deployment.
Constructor and Description |
---|
InstanceSummary() |
Modifier and Type | Method and Description |
---|---|
InstanceSummary |
clone() |
boolean |
equals(Object obj) |
String |
getDeploymentId()
The deployment ID.
|
String |
getInstanceId()
The instance ID.
|
Date |
getLastUpdatedAt()
A timestamp indicating when the instance information was last updated.
|
List<LifecycleEvent> |
getLifecycleEvents()
A list of lifecycle events for this instance.
|
String |
getStatus()
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.
|
int |
hashCode() |
void |
setDeploymentId(String deploymentId)
The deployment ID.
|
void |
setInstanceId(String instanceId)
The instance ID.
|
void |
setLastUpdatedAt(Date lastUpdatedAt)
A timestamp indicating when the instance information was last updated.
|
void |
setLifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
A list of lifecycle events for this instance.
|
void |
setStatus(InstanceStatus status)
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.
|
void |
setStatus(String status)
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceSummary |
withDeploymentId(String deploymentId)
The deployment ID.
|
InstanceSummary |
withInstanceId(String instanceId)
The instance ID.
|
InstanceSummary |
withLastUpdatedAt(Date lastUpdatedAt)
A timestamp indicating when the instance information was last updated.
|
InstanceSummary |
withLifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
A list of lifecycle events for this instance.
|
InstanceSummary |
withLifecycleEvents(LifecycleEvent... lifecycleEvents)
A list of lifecycle events for this instance.
|
InstanceSummary |
withStatus(InstanceStatus status)
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.
|
InstanceSummary |
withStatus(String status)
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.
|
public String getDeploymentId()
public void setDeploymentId(String deploymentId)
deploymentId
- The deployment ID.public InstanceSummary withDeploymentId(String deploymentId)
Returns a reference to this object so that method calls can be chained together.
deploymentId
- The deployment ID.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The instance ID.public InstanceSummary withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The instance ID.public String getStatus()
Constraints:
Allowed Values: Pending, InProgress, Succeeded, Failed, Skipped, Unknown
InstanceStatus
public void setStatus(String status)
Constraints:
Allowed Values: Pending, InProgress, Succeeded, Failed, Skipped, Unknown
status
- The deployment status for this instance: InstanceStatus
public InstanceSummary withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Pending, InProgress, Succeeded, Failed, Skipped, Unknown
status
- The deployment status for this instance: InstanceStatus
public void setStatus(InstanceStatus status)
Constraints:
Allowed Values: Pending, InProgress, Succeeded, Failed, Skipped, Unknown
status
- The deployment status for this instance: InstanceStatus
public InstanceSummary withStatus(InstanceStatus status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Pending, InProgress, Succeeded, Failed, Skipped, Unknown
status
- The deployment status for this instance: InstanceStatus
public Date getLastUpdatedAt()
public void setLastUpdatedAt(Date lastUpdatedAt)
lastUpdatedAt
- A timestamp indicating when the instance information was last updated.public InstanceSummary withLastUpdatedAt(Date lastUpdatedAt)
Returns a reference to this object so that method calls can be chained together.
lastUpdatedAt
- A timestamp indicating when the instance information was last updated.public List<LifecycleEvent> getLifecycleEvents()
public void setLifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
lifecycleEvents
- A list of lifecycle events for this instance.public InstanceSummary withLifecycleEvents(LifecycleEvent... lifecycleEvents)
NOTE: This method appends the values to the existing list (if
any). Use setLifecycleEvents(java.util.Collection)
or withLifecycleEvents(java.util.Collection)
if you want to override
the existing values.
Returns a reference to this object so that method calls can be chained together.
lifecycleEvents
- A list of lifecycle events for this instance.public InstanceSummary withLifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
Returns a reference to this object so that method calls can be chained together.
lifecycleEvents
- A list of lifecycle events for this instance.public String toString()
toString
in class Object
Object.toString()
public InstanceSummary clone()
Copyright © 2015. All rights reserved.