ToCopyableBuilder<SpotInstanceRequest.Builder,SpotInstanceRequest>
@Generated("software.amazon.awssdk:codegen") public class SpotInstanceRequest extends Object implements ToCopyableBuilder<SpotInstanceRequest.Builder,SpotInstanceRequest>
Describes a Spot instance request.
Modifier and Type | Class | Description |
---|---|---|
static interface |
SpotInstanceRequest.Builder |
Modifier and Type | Method | 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() |
|
Date |
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.
|
int |
hashCode() |
|
String |
instanceId() |
The instance ID, if an instance has been launched to fulfill the Spot instance request.
|
String |
launchedAvailabilityZone() |
The Availability Zone in which the bid is launched.
|
String |
launchGroup() |
The instance launch group.
|
LaunchSpecification |
launchSpecification() |
Additional information for launching instances.
|
String |
productDescription() |
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.
|
String |
state() |
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() |
|
String |
type() |
The Spot instance request type.
|
Date |
validFrom() |
The start date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
Date |
validUntil() |
The end date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
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 Date 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 String productDescription()
The product description associated with the Spot instance.
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 String 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.
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.
public String type()
The Spot instance request type.
SpotInstanceType
public Date 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 Date 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 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.