@Generated(value="software.amazon.awssdk:codegen") public final class SpotInstanceRequest extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(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() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
instanceId()
The instance ID, if an instance has been launched to fulfill the Spot Instance request.
|
InstanceInterruptionBehavior |
instanceInterruptionBehavior()
The behavior when a Spot Instance is interrupted.
|
String |
instanceInterruptionBehaviorAsString()
The behavior when a Spot Instance is interrupted.
|
String |
launchedAvailabilityZone()
The Availability Zone in which the request 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 |
productDescriptionAsString()
The product description associated with the Spot Instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SpotInstanceRequest.Builder> |
serializableBuilderClass() |
String |
spotInstanceRequestId()
The ID of the Spot Instance request.
|
String |
spotPrice()
The maximum price per hour that you are willing to pay for a Spot Instance.
|
SpotInstanceState |
state()
The state of the Spot Instance request.
|
String |
stateAsString()
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() |
String |
toString()
Returns a string representation of this object.
|
SpotInstanceType |
type()
The Spot Instance request type.
|
String |
typeAsString()
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 (YYYY-MM-DDTHH:MM:SSZ).
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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 request 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 productDescriptionAsString().
RIProductDescriptionpublic String productDescriptionAsString()
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 productDescriptionAsString().
RIProductDescriptionpublic String spotInstanceRequestId()
The ID of the Spot Instance request.
public String spotPrice()
The maximum price per hour that you are willing to pay for a Spot Instance.
public SpotInstanceState state()
The state of the Spot Instance request. Spot status information helps track your Spot Instance requests. For more information, see Spot status in the Amazon EC2 User Guide for Linux Instances.
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
stateAsString().
SpotInstanceStatepublic String stateAsString()
The state of the Spot Instance request. Spot status information helps track your Spot Instance requests. For more information, see Spot status in the Amazon EC2 User Guide for Linux Instances.
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
stateAsString().
SpotInstanceStatepublic SpotInstanceStatus status()
The status code and status message describing the Spot Instance request.
public boolean hasTags()
public List<Tag> tags()
Any tags assigned to the resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
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
typeAsString().
SpotInstanceTypepublic String typeAsString()
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
typeAsString().
SpotInstanceTypepublic 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 (YYYY-MM-DDTHH:MM:SSZ).
For a persistent request, the request remains active until the validUntil date and time is reached.
Otherwise, the request remains active until you cancel it.
For a one-time request, the request remains active until all instances launch, the request is canceled, or the
validUntil date and time is reached. By default, the request is valid for 7 days from the date the
request was created.
For a persistent request, the request remains active until the validUntil date and time is
reached. Otherwise, the request remains active until you cancel it.
For a one-time request, the request remains active until all instances launch, the request is canceled,
or the validUntil date and time is reached. By default, the request is valid for 7 days from
the date the request was created.
public InstanceInterruptionBehavior instanceInterruptionBehavior()
The behavior when a Spot Instance 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 instanceInterruptionBehaviorAsString().
InstanceInterruptionBehaviorpublic String instanceInterruptionBehaviorAsString()
The behavior when a Spot Instance 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 instanceInterruptionBehaviorAsString().
InstanceInterruptionBehaviorpublic SpotInstanceRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SpotInstanceRequest.Builder,SpotInstanceRequest>public static SpotInstanceRequest.Builder builder()
public static Class<? extends SpotInstanceRequest.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.