Interface SpotDatafeedSubscription.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SpotDatafeedSubscription.Builder,SpotDatafeedSubscription>
,SdkBuilder<SpotDatafeedSubscription.Builder,SpotDatafeedSubscription>
,SdkPojo
- Enclosing class:
- SpotDatafeedSubscription
public static interface SpotDatafeedSubscription.Builder extends SdkPojo, CopyableBuilder<SpotDatafeedSubscription.Builder,SpotDatafeedSubscription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SpotDatafeedSubscription.Builder
bucket(String bucket)
The name of the Amazon S3 bucket where the Spot Instance data feed is located.default SpotDatafeedSubscription.Builder
fault(Consumer<SpotInstanceStateFault.Builder> fault)
The fault codes for the Spot Instance request, if any.SpotDatafeedSubscription.Builder
fault(SpotInstanceStateFault fault)
The fault codes for the Spot Instance request, if any.SpotDatafeedSubscription.Builder
ownerId(String ownerId)
The Amazon Web Services account ID of the account.SpotDatafeedSubscription.Builder
prefix(String prefix)
The prefix for the data feed files.SpotDatafeedSubscription.Builder
state(String state)
The state of the Spot Instance data feed subscription.SpotDatafeedSubscription.Builder
state(DatafeedSubscriptionState state)
The state of the Spot Instance data feed subscription.-
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, sdkFields
-
-
-
-
Method Detail
-
bucket
SpotDatafeedSubscription.Builder bucket(String bucket)
The name of the Amazon S3 bucket where the Spot Instance data feed is located.
- Parameters:
bucket
- The name of the Amazon S3 bucket where the Spot Instance data feed is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fault
SpotDatafeedSubscription.Builder fault(SpotInstanceStateFault fault)
The fault codes for the Spot Instance request, if any.
- Parameters:
fault
- The fault codes for the Spot Instance request, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fault
default SpotDatafeedSubscription.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 viaSpotInstanceStateFault.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofault(SpotInstanceStateFault)
.- Parameters:
fault
- a consumer that will call methods onSpotInstanceStateFault.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
fault(SpotInstanceStateFault)
-
ownerId
SpotDatafeedSubscription.Builder ownerId(String ownerId)
The Amazon Web Services account ID of the account.
- Parameters:
ownerId
- The Amazon Web Services account ID of the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefix
SpotDatafeedSubscription.Builder prefix(String prefix)
The prefix for the data feed files.
- Parameters:
prefix
- The prefix for the data feed files.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
SpotDatafeedSubscription.Builder state(String state)
The state of the Spot Instance data feed subscription.
- Parameters:
state
- The state of the Spot Instance data feed subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DatafeedSubscriptionState
,DatafeedSubscriptionState
-
state
SpotDatafeedSubscription.Builder state(DatafeedSubscriptionState state)
The state of the Spot Instance data feed subscription.
- Parameters:
state
- The state of the Spot Instance data feed subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DatafeedSubscriptionState
,DatafeedSubscriptionState
-
-