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.Builderbucket(String bucket)The name of the Amazon S3 bucket where the Spot Instance data feed is located.default SpotDatafeedSubscription.Builderfault(Consumer<SpotInstanceStateFault.Builder> fault)The fault codes for the Spot Instance request, if any.SpotDatafeedSubscription.Builderfault(SpotInstanceStateFault fault)The fault codes for the Spot Instance request, if any.SpotDatafeedSubscription.BuilderownerId(String ownerId)The Amazon Web Services account ID of the account.SpotDatafeedSubscription.Builderprefix(String prefix)The prefix for the data feed files.SpotDatafeedSubscription.Builderstate(String state)The state of the Spot Instance data feed subscription.SpotDatafeedSubscription.Builderstate(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, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaSpotInstanceStateFault.builder().When the
Consumercompletes,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
-
-