@Generated(value="software.amazon.awssdk:codegen") public final class InstanceSummary extends Object implements StructuredPojo, ToCopyableBuilder<InstanceSummary.Builder,InstanceSummary>
Information about an instance in a deployment.
Modifier and Type | Class and Description |
---|---|
static interface |
InstanceSummary.Builder |
Modifier and Type | Method and Description |
---|---|
static InstanceSummary.Builder |
builder() |
String |
deploymentId()
The deployment ID.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
The instance ID.
|
InstanceType |
instanceType()
Information about which environment an instance belongs to in a blue/green deployment.
|
String |
instanceTypeAsString()
Information about which environment an instance belongs to in a blue/green deployment.
|
Instant |
lastUpdatedAt()
A timestamp indicating when the instance information was last updated.
|
List<LifecycleEvent> |
lifecycleEvents()
A list of lifecycle events for this instance.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends InstanceSummary.Builder> |
serializableBuilderClass() |
InstanceStatus |
status()
The deployment status for this instance:
|
String |
statusAsString()
The deployment status for this instance:
|
InstanceSummary.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String deploymentId()
The deployment ID.
public String instanceId()
The instance ID.
public 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.
If the service returns an enum value that is not available in the current SDK version, status
will
return InstanceStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
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.
InstanceStatus
public String statusAsString()
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.
If the service returns an enum value that is not available in the current SDK version, status
will
return InstanceStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
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.
InstanceStatus
public Instant lastUpdatedAt()
A timestamp indicating when the instance information was last updated.
public List<LifecycleEvent> lifecycleEvents()
A list of lifecycle events for this instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public InstanceType instanceType()
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.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
instanceTypeAsString()
.
BLUE: The instance is part of the original environment.
GREEN: The instance is part of the replacement environment.
InstanceType
public String instanceTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, instanceType
will
return InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
instanceTypeAsString()
.
BLUE: The instance is part of the original environment.
GREEN: The instance is part of the replacement environment.
InstanceType
public InstanceSummary.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<InstanceSummary.Builder,InstanceSummary>
public static InstanceSummary.Builder builder()
public static Class<? extends InstanceSummary.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.