public static interface SpotInstanceRequest.Builder extends CopyableBuilder<SpotInstanceRequest.Builder,SpotInstanceRequest>
Modifier and Type | Method and 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(Instant createTime)
The date and time when the Spot instance request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
default SpotInstanceRequest.Builder |
fault(Consumer<SpotInstanceStateFault.Builder> fault)
The fault codes for the Spot instance request, if any.
|
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 |
instanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
SpotInstanceRequest.Builder |
instanceInterruptionBehavior(String instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
SpotInstanceRequest.Builder |
launchedAvailabilityZone(String launchedAvailabilityZone)
The Availability Zone in which the bid is launched.
|
SpotInstanceRequest.Builder |
launchGroup(String launchGroup)
The instance launch group.
|
default SpotInstanceRequest.Builder |
launchSpecification(Consumer<LaunchSpecification.Builder> launchSpecification)
Additional information for launching instances.
|
SpotInstanceRequest.Builder |
launchSpecification(LaunchSpecification launchSpecification)
Additional information for launching instances.
|
SpotInstanceRequest.Builder |
productDescription(RIProductDescription productDescription)
The product description associated with the Spot instance.
|
SpotInstanceRequest.Builder |
productDescription(String 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(SpotInstanceState state)
The state of the Spot instance request.
|
SpotInstanceRequest.Builder |
state(String state)
The state of the Spot instance request.
|
default SpotInstanceRequest.Builder |
status(Consumer<SpotInstanceStatus.Builder> status)
The status code and status message describing 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(Consumer<Tag.Builder>... tags)
Any tags assigned to the resource.
|
SpotInstanceRequest.Builder |
tags(Tag... tags)
Any tags assigned to the resource.
|
SpotInstanceRequest.Builder |
type(SpotInstanceType type)
The Spot instance request type.
|
SpotInstanceRequest.Builder |
type(String type)
The Spot instance request type.
|
SpotInstanceRequest.Builder |
validFrom(Instant validFrom)
The start date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotInstanceRequest.Builder |
validUntil(Instant validUntil)
The end date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
copy
applyMutation, 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(Instant 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.default SpotInstanceRequest.Builder fault(Consumer<SpotInstanceStateFault.Builder> fault)
The fault codes for the Spot instance request, if any.
This is a convenience that creates an instance of theSpotInstanceStateFault.Builder
avoiding the
need to create one manually via SpotInstanceStateFault.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to fault(SpotInstanceStateFault)
.fault
- a consumer that will call methods on SpotInstanceStateFault.Builder
fault(SpotInstanceStateFault)
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.default SpotInstanceRequest.Builder launchSpecification(Consumer<LaunchSpecification.Builder> launchSpecification)
Additional information for launching instances.
This is a convenience that creates an instance of theLaunchSpecification.Builder
avoiding the need
to create one manually via LaunchSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to launchSpecification(LaunchSpecification)
.launchSpecification
- a consumer that will call methods on LaunchSpecification.Builder
launchSpecification(LaunchSpecification)
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
,
RIProductDescription
SpotInstanceRequest.Builder productDescription(RIProductDescription productDescription)
The product description associated with the Spot instance.
productDescription
- The product description associated with the Spot instance.RIProductDescription
,
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
,
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
,
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.default SpotInstanceRequest.Builder status(Consumer<SpotInstanceStatus.Builder> status)
The status code and status message describing the Spot instance request.
This is a convenience that creates an instance of theSpotInstanceStatus.Builder
avoiding the need to
create one manually via SpotInstanceStatus.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to status(SpotInstanceStatus)
.status
- a consumer that will call methods on SpotInstanceStatus.Builder
status(SpotInstanceStatus)
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.
tags
- Any tags assigned to the resource.SpotInstanceRequest.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the resource.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
SpotInstanceRequest.Builder type(String type)
The Spot instance request type.
type
- The Spot instance request type.SpotInstanceType
,
SpotInstanceType
SpotInstanceRequest.Builder type(SpotInstanceType type)
The Spot instance request type.
type
- The Spot instance request type.SpotInstanceType
,
SpotInstanceType
SpotInstanceRequest.Builder validFrom(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.
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(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.
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.SpotInstanceRequest.Builder instanceInterruptionBehavior(String instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
instanceInterruptionBehavior
- Indicates whether a Spot instance stops or terminates when it is interrupted.InstanceInterruptionBehavior
,
InstanceInterruptionBehavior
SpotInstanceRequest.Builder instanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
instanceInterruptionBehavior
- Indicates whether a Spot instance stops or terminates when it is interrupted.InstanceInterruptionBehavior
,
InstanceInterruptionBehavior
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.