Interface ImmutableConfirmationConfiguration.BuildFinal<C>
- All Known Implementing Classes:
ImmutableConfirmationConfiguration.Builder
- Enclosing class:
- ImmutableConfirmationConfiguration<C>
public static interface ImmutableConfirmationConfiguration.BuildFinal<C>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableConfirmationConfiguration.bypassConfirmation(@NonNull Predicate<CommandContext<C>> bypassConfirmation) Initializes the value for thebypassConfirmationattribute.expiration(@Nullable Duration expiration) Initializes the value for theexpirationattribute.
-
Method Details
-
bypassConfirmation
ImmutableConfirmationConfiguration.BuildFinal<C> bypassConfirmation(@NonNull Predicate<CommandContext<C>> bypassConfirmation) Initializes the value for thebypassConfirmationattribute.If not set, this attribute will have a default value as returned by the initializer of
bypassConfirmation.- Parameters:
bypassConfirmation- The value for bypassConfirmation- Returns:
thisbuilder for use in a chained invocation
-
expiration
Initializes the value for theexpirationattribute.If not set, this attribute will have a default value as returned by the initializer of
expiration.- Parameters:
expiration- The value for expiration (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
ImmutableConfirmationConfiguration<C> build()Builds a newImmutableConfirmationConfiguration.- Returns:
- An immutable instance of ConfirmationConfiguration
- Throws:
IllegalStateException- if any required attributes are missing
-