public static interface SpotInstanceRequest.Builder extends SdkPojo, CopyableBuilder<SpotInstanceRequest.Builder,SpotInstanceRequest>
Modifier and Type | Method and Description |
---|---|
SpotInstanceRequest.Builder |
actualBlockHourlyPrice(String actualBlockHourlyPrice)
Deprecated.
|
SpotInstanceRequest.Builder |
availabilityZoneGroup(String availabilityZoneGroup)
The Availability Zone group.
|
SpotInstanceRequest.Builder |
blockDurationMinutes(Integer blockDurationMinutes)
Deprecated.
|
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)
The behavior when a Spot Instance is interrupted.
|
SpotInstanceRequest.Builder |
instanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
SpotInstanceRequest.Builder |
launchedAvailabilityZone(String launchedAvailabilityZone)
The Availability Zone in which the request 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 price per hour that you are willing to pay for a Spot Instance.
|
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 (YYYY-MM-DDTHH:MM:SSZ).
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
SpotInstanceRequest.Builder actualBlockHourlyPrice(String actualBlockHourlyPrice)
Deprecated.
actualBlockHourlyPrice
- Deprecated.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)
Deprecated.
blockDurationMinutes
- Deprecated.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 method 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 method 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 request is launched.
launchedAvailabilityZone
- The Availability Zone in which the request 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 price per hour that you are willing to pay for a Spot Instance.
spotPrice
- The maximum price per hour that you are willing to pay for a Spot Instance.SpotInstanceRequest.Builder state(String 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.
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.SpotInstanceState
,
SpotInstanceState
SpotInstanceRequest.Builder state(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.
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.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 method 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 method 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 (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.
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.
SpotInstanceRequest.Builder instanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted.InstanceInterruptionBehavior
,
InstanceInterruptionBehavior
SpotInstanceRequest.Builder instanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted.InstanceInterruptionBehavior
,
InstanceInterruptionBehavior
Copyright © 2022. All rights reserved.