CopyableBuilder<SpotInstanceRequest.Builder,SpotInstanceRequest>
, SdkBuilder<SpotInstanceRequest.Builder,SpotInstanceRequest>
public static interface SpotInstanceRequest.Builder extends CopyableBuilder<SpotInstanceRequest.Builder,SpotInstanceRequest>
Modifier and Type | Method | Description |
---|---|---|
SpotInstanceRequest.Builder |
actualBlockHourlyPrice(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.
|
SpotInstanceRequest.Builder |
availabilityZoneGroup(String availabilityZoneGroup) |
The Availability Zone group.
|
SpotInstanceRequest.Builder |
blockDurationMinutes(Integer blockDurationMinutes) |
The duration for the Spot instance, in minutes.
|
SpotInstanceRequest.Builder |
createTime(Date createTime) |
The date and time when the Spot instance request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotInstanceRequest.Builder |
fault(SpotInstanceStateFault fault) |
The fault codes for the Spot instance request, if any.
|
SpotInstanceRequest.Builder |
instanceId(String instanceId) |
The instance ID, if an instance has been launched to fulfill the Spot instance request.
|
SpotInstanceRequest.Builder |
launchedAvailabilityZone(String launchedAvailabilityZone) |
The Availability Zone in which the bid is launched.
|
SpotInstanceRequest.Builder |
launchGroup(String launchGroup) |
The instance launch group.
|
SpotInstanceRequest.Builder |
launchSpecification(LaunchSpecification launchSpecification) |
Additional information for launching instances.
|
SpotInstanceRequest.Builder |
productDescription(String productDescription) |
The product description associated with the Spot instance.
|
SpotInstanceRequest.Builder |
productDescription(RIProductDescription productDescription) |
The product description associated with the Spot instance.
|
SpotInstanceRequest.Builder |
spotInstanceRequestId(String spotInstanceRequestId) |
The ID of the Spot instance request.
|
SpotInstanceRequest.Builder |
spotPrice(String spotPrice) |
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
|
SpotInstanceRequest.Builder |
state(String state) |
The state of the Spot instance request.
|
SpotInstanceRequest.Builder |
state(SpotInstanceState state) |
The state of the Spot instance request.
|
SpotInstanceRequest.Builder |
status(SpotInstanceStatus status) |
The status code and status message describing the Spot instance request.
|
SpotInstanceRequest.Builder |
tags(Collection<Tag> tags) |
Any tags assigned to the resource.
|
SpotInstanceRequest.Builder |
tags(Tag... tags) |
Any tags assigned to the resource.
|
SpotInstanceRequest.Builder |
type(String type) |
The Spot instance request type.
|
SpotInstanceRequest.Builder |
type(SpotInstanceType type) |
The Spot instance request type.
|
SpotInstanceRequest.Builder |
validFrom(Date validFrom) |
The start date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotInstanceRequest.Builder |
validUntil(Date validUntil) |
The end date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
copy
apply, build
SpotInstanceRequest.Builder actualBlockHourlyPrice(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.
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.SpotInstanceRequest.Builder availabilityZoneGroup(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.
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.SpotInstanceRequest.Builder blockDurationMinutes(Integer blockDurationMinutes)
The duration for the Spot instance, in minutes.
blockDurationMinutes
- The duration for the Spot instance, in minutes.SpotInstanceRequest.Builder createTime(Date createTime)
The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
createTime
- The date and time when the Spot instance request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).SpotInstanceRequest.Builder fault(SpotInstanceStateFault fault)
The fault codes for the Spot instance request, if any.
fault
- The fault codes for the Spot instance request, if any.SpotInstanceRequest.Builder instanceId(String instanceId)
The instance ID, if an instance has been launched to fulfill the Spot instance request.
instanceId
- The instance ID, if an instance has been launched to fulfill the Spot instance request.SpotInstanceRequest.Builder launchGroup(String launchGroup)
The instance launch group. Launch groups are Spot instances that launch together and terminate together.
launchGroup
- The instance launch group. Launch groups are Spot instances that launch together and terminate
together.SpotInstanceRequest.Builder launchSpecification(LaunchSpecification launchSpecification)
Additional information for launching instances.
launchSpecification
- Additional information for launching instances.SpotInstanceRequest.Builder launchedAvailabilityZone(String launchedAvailabilityZone)
The Availability Zone in which the bid is launched.
launchedAvailabilityZone
- The Availability Zone in which the bid is launched.SpotInstanceRequest.Builder productDescription(String productDescription)
The product description associated with the Spot instance.
productDescription
- The product description associated with the Spot instance.RIProductDescription
SpotInstanceRequest.Builder productDescription(RIProductDescription productDescription)
The product description associated with the Spot instance.
productDescription
- The product description associated with the Spot instance.RIProductDescription
SpotInstanceRequest.Builder spotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot instance request.
spotInstanceRequestId
- The ID of the Spot instance request.SpotInstanceRequest.Builder spotPrice(String spotPrice)
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
spotPrice
- The maximum hourly price (bid) for the Spot instance launched to fulfill the request.SpotInstanceRequest.Builder state(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.
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
SpotInstanceRequest.Builder state(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.
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
SpotInstanceRequest.Builder status(SpotInstanceStatus status)
The status code and status message describing the Spot instance request.
status
- The status code and status message describing the Spot instance request.SpotInstanceRequest.Builder tags(Collection<Tag> tags)
Any tags assigned to the resource.
tags
- Any tags assigned to the resource.SpotInstanceRequest.Builder tags(Tag... tags)
Any tags assigned to the resource.
NOTE: This method appends the values to the existing list (if any). Use
#setTags(java.util.Collection)
or #withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the resource.SpotInstanceRequest.Builder type(String type)
The Spot instance request type.
type
- The Spot instance request type.SpotInstanceType
SpotInstanceRequest.Builder type(SpotInstanceType type)
The Spot instance request type.
type
- The Spot instance request type.SpotInstanceType
SpotInstanceRequest.Builder validFrom(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.
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.SpotInstanceRequest.Builder validUntil(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.
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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.