@Generated(value="software.amazon.awssdk:codegen") public class SpotInstanceRequest extends Object implements ToCopyableBuilder<SpotInstanceRequest.Builder,SpotInstanceRequest>
Describes a Spot instance request.
Modifier and Type | Class and Description |
---|---|
static interface |
SpotInstanceRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
actualBlockHourlyPrice()
If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in
effect for the Spot instance while it runs.
|
String |
availabilityZoneGroup()
The Availability Zone group.
|
Integer |
blockDurationMinutes()
The duration for the Spot instance, in minutes.
|
static SpotInstanceRequest.Builder |
builder() |
Instant |
createTime()
The date and time when the Spot instance request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
boolean |
equals(Object obj) |
SpotInstanceStateFault |
fault()
The fault codes for the Spot instance request, if any.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
The instance ID, if an instance has been launched to fulfill the Spot instance request.
|
InstanceInterruptionBehavior |
instanceInterruptionBehavior()
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
String |
instanceInterruptionBehaviorString()
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
String |
launchedAvailabilityZone()
The Availability Zone in which the bid is launched.
|
String |
launchGroup()
The instance launch group.
|
LaunchSpecification |
launchSpecification()
Additional information for launching instances.
|
RIProductDescription |
productDescription()
The product description associated with the Spot instance.
|
String |
productDescriptionString()
The product description associated with the Spot instance.
|
static Class<? extends SpotInstanceRequest.Builder> |
serializableBuilderClass() |
String |
spotInstanceRequestId()
The ID of the Spot instance request.
|
String |
spotPrice()
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
|
SpotInstanceState |
state()
The state of the Spot instance request.
|
String |
stateString()
The state of the Spot instance request.
|
SpotInstanceStatus |
status()
The status code and status message describing the Spot instance request.
|
List<Tag> |
tags()
Any tags assigned to the resource.
|
SpotInstanceRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
SpotInstanceType |
type()
The Spot instance request type.
|
String |
typeString()
The Spot instance request type.
|
Instant |
validFrom()
The start date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
Instant |
validUntil()
The end date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
copy
public String actualBlockHourlyPrice()
If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.
public String availabilityZoneGroup()
The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.
public Integer blockDurationMinutes()
The duration for the Spot instance, in minutes.
public Instant createTime()
The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
public SpotInstanceStateFault fault()
The fault codes for the Spot instance request, if any.
public String instanceId()
The instance ID, if an instance has been launched to fulfill the Spot instance request.
public String launchGroup()
The instance launch group. Launch groups are Spot instances that launch together and terminate together.
public LaunchSpecification launchSpecification()
Additional information for launching instances.
public String launchedAvailabilityZone()
The Availability Zone in which the bid is launched.
public RIProductDescription productDescription()
The product description associated with the Spot instance.
If the service returns an enum value that is not available in the current SDK version,
productDescription
will return RIProductDescription.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from productDescriptionString()
.
RIProductDescription
public String productDescriptionString()
The product description associated with the Spot instance.
If the service returns an enum value that is not available in the current SDK version,
productDescription
will return RIProductDescription.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from productDescriptionString()
.
RIProductDescription
public String spotInstanceRequestId()
The ID of the Spot instance request.
public String spotPrice()
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
public SpotInstanceState state()
The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
If the service returns an enum value that is not available in the current SDK version, state
will return
SpotInstanceState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateString()
.
SpotInstanceState
public String stateString()
The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
If the service returns an enum value that is not available in the current SDK version, state
will return
SpotInstanceState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateString()
.
SpotInstanceState
public SpotInstanceStatus status()
The status code and status message describing the Spot instance request.
public List<Tag> tags()
Any tags assigned to the resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public SpotInstanceType type()
The Spot instance request type.
If the service returns an enum value that is not available in the current SDK version, type
will return
SpotInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
SpotInstanceType
public String typeString()
The Spot instance request type.
If the service returns an enum value that is not available in the current SDK version, type
will return
SpotInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
SpotInstanceType
public Instant validFrom()
The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.
public Instant validUntil()
The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.
public InstanceInterruptionBehavior instanceInterruptionBehavior()
Indicates whether a Spot instance stops or terminates when it is interrupted.
If the service returns an enum value that is not available in the current SDK version,
instanceInterruptionBehavior
will return InstanceInterruptionBehavior.UNKNOWN_TO_SDK_VERSION
.
The raw value returned by the service is available from instanceInterruptionBehaviorString()
.
InstanceInterruptionBehavior
public String instanceInterruptionBehaviorString()
Indicates whether a Spot instance stops or terminates when it is interrupted.
If the service returns an enum value that is not available in the current SDK version,
instanceInterruptionBehavior
will return InstanceInterruptionBehavior.UNKNOWN_TO_SDK_VERSION
.
The raw value returned by the service is available from instanceInterruptionBehaviorString()
.
InstanceInterruptionBehavior
public SpotInstanceRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SpotInstanceRequest.Builder,SpotInstanceRequest>
public static SpotInstanceRequest.Builder builder()
public static Class<? extends SpotInstanceRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.