Interface SpotFleetRequestConfig.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SpotFleetRequestConfig.Builder,SpotFleetRequestConfig>
,SdkBuilder<SpotFleetRequestConfig.Builder,SpotFleetRequestConfig>
,SdkPojo
- Enclosing class:
- SpotFleetRequestConfig
public static interface SpotFleetRequestConfig.Builder extends SdkPojo, CopyableBuilder<SpotFleetRequestConfig.Builder,SpotFleetRequestConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SpotFleetRequestConfig.Builder
activityStatus(String activityStatus)
The progress of the Spot Fleet request.SpotFleetRequestConfig.Builder
activityStatus(ActivityStatus activityStatus)
The progress of the Spot Fleet request.SpotFleetRequestConfig.Builder
createTime(Instant createTime)
The creation date and time of the request.default SpotFleetRequestConfig.Builder
spotFleetRequestConfig(Consumer<SpotFleetRequestConfigData.Builder> spotFleetRequestConfig)
The configuration of the Spot Fleet request.SpotFleetRequestConfig.Builder
spotFleetRequestConfig(SpotFleetRequestConfigData spotFleetRequestConfig)
The configuration of the Spot Fleet request.SpotFleetRequestConfig.Builder
spotFleetRequestId(String spotFleetRequestId)
The ID of the Spot Fleet request.SpotFleetRequestConfig.Builder
spotFleetRequestState(String spotFleetRequestState)
The state of the Spot Fleet request.SpotFleetRequestConfig.Builder
spotFleetRequestState(BatchState spotFleetRequestState)
The state of the Spot Fleet request.SpotFleetRequestConfig.Builder
tags(Collection<Tag> tags)
The tags for a Spot Fleet resource.SpotFleetRequestConfig.Builder
tags(Consumer<Tag.Builder>... tags)
The tags for a Spot Fleet resource.SpotFleetRequestConfig.Builder
tags(Tag... tags)
The tags for a Spot Fleet resource.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
activityStatus
SpotFleetRequestConfig.Builder activityStatus(String activityStatus)
The progress of the Spot Fleet request. If there is an error, the status is
error
. After all requests are placed, the status ispending_fulfillment
. If the size of the fleet is equal to or greater than its target capacity, the status isfulfilled
. If the size of the fleet is decreased, the status ispending_termination
while Spot Instances are terminating.- Parameters:
activityStatus
- The progress of the Spot Fleet request. If there is an error, the status iserror
. After all requests are placed, the status ispending_fulfillment
. If the size of the fleet is equal to or greater than its target capacity, the status isfulfilled
. If the size of the fleet is decreased, the status ispending_termination
while Spot Instances are terminating.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ActivityStatus
,ActivityStatus
-
activityStatus
SpotFleetRequestConfig.Builder activityStatus(ActivityStatus activityStatus)
The progress of the Spot Fleet request. If there is an error, the status is
error
. After all requests are placed, the status ispending_fulfillment
. If the size of the fleet is equal to or greater than its target capacity, the status isfulfilled
. If the size of the fleet is decreased, the status ispending_termination
while Spot Instances are terminating.- Parameters:
activityStatus
- The progress of the Spot Fleet request. If there is an error, the status iserror
. After all requests are placed, the status ispending_fulfillment
. If the size of the fleet is equal to or greater than its target capacity, the status isfulfilled
. If the size of the fleet is decreased, the status ispending_termination
while Spot Instances are terminating.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ActivityStatus
,ActivityStatus
-
createTime
SpotFleetRequestConfig.Builder createTime(Instant createTime)
The creation date and time of the request.
- Parameters:
createTime
- The creation date and time of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotFleetRequestConfig
SpotFleetRequestConfig.Builder spotFleetRequestConfig(SpotFleetRequestConfigData spotFleetRequestConfig)
The configuration of the Spot Fleet request.
- Parameters:
spotFleetRequestConfig
- The configuration of the Spot Fleet request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotFleetRequestConfig
default SpotFleetRequestConfig.Builder spotFleetRequestConfig(Consumer<SpotFleetRequestConfigData.Builder> spotFleetRequestConfig)
The configuration of the Spot Fleet request.
This is a convenience method that creates an instance of theSpotFleetRequestConfigData.Builder
avoiding the need to create one manually viaSpotFleetRequestConfigData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tospotFleetRequestConfig(SpotFleetRequestConfigData)
.- Parameters:
spotFleetRequestConfig
- a consumer that will call methods onSpotFleetRequestConfigData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
spotFleetRequestConfig(SpotFleetRequestConfigData)
-
spotFleetRequestId
SpotFleetRequestConfig.Builder spotFleetRequestId(String spotFleetRequestId)
The ID of the Spot Fleet request.
- Parameters:
spotFleetRequestId
- The ID of the Spot Fleet request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotFleetRequestState
SpotFleetRequestConfig.Builder spotFleetRequestState(String spotFleetRequestState)
The state of the Spot Fleet request.
- Parameters:
spotFleetRequestState
- The state of the Spot Fleet request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BatchState
,BatchState
-
spotFleetRequestState
SpotFleetRequestConfig.Builder spotFleetRequestState(BatchState spotFleetRequestState)
The state of the Spot Fleet request.
- Parameters:
spotFleetRequestState
- The state of the Spot Fleet request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BatchState
,BatchState
-
tags
SpotFleetRequestConfig.Builder tags(Collection<Tag> tags)
The tags for a Spot Fleet resource.
- Parameters:
tags
- The tags for a Spot Fleet resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SpotFleetRequestConfig.Builder tags(Tag... tags)
The tags for a Spot Fleet resource.
- Parameters:
tags
- The tags for a Spot Fleet resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SpotFleetRequestConfig.Builder tags(Consumer<Tag.Builder>... tags)
The tags for a Spot Fleet resource.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection
)
-
-