Package io.substrait.extension
Class ImmutableSimpleExtension.EnumArgument.Builder
java.lang.Object
io.substrait.extension.ImmutableSimpleExtension.EnumArgument.Builder
- Enclosing class:
- ImmutableSimpleExtension.EnumArgument
Builds instances of type
EnumArgument.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllOptions(Iterable<String> elements) Adds elements tooptionslist.addOptions(String element) Adds one element tooptionslist.addOptions(String... elements) Adds elements tooptionslist.build()Builds a newEnumArgument.description(@Nullable String description) Initializes the value for thedescriptionattribute.from(SimpleExtension.Argument instance) Fill a builder with attribute values from the providedio.substrait.extension.SimpleExtension.Argumentinstance.from(SimpleExtension.EnumArgument instance) Fill a builder with attribute values from the providedio.substrait.extension.SimpleExtension.EnumArgumentinstance.Initializes the value for thenameattribute.Sets or replaces all elements foroptionslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedio.substrait.extension.SimpleExtension.Argumentinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableSimpleExtension.EnumArgument.Builder from(SimpleExtension.EnumArgument instance) Fill a builder with attribute values from the providedio.substrait.extension.SimpleExtension.EnumArgumentinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name (can benull)- Returns:
thisbuilder for use in a chained invocation
-
description
public final ImmutableSimpleExtension.EnumArgument.Builder description(@Nullable String description) Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description (can benull)- Returns:
thisbuilder for use in a chained invocation
-
addOptions
Adds one element tooptionslist.- Parameters:
element- A options element- Returns:
thisbuilder for use in a chained invocation
-
addOptions
Adds elements tooptionslist.- Parameters:
elements- An array of options elements- Returns:
thisbuilder for use in a chained invocation
-
options
Sets or replaces all elements foroptionslist.- Parameters:
elements- An iterable of options elements- Returns:
thisbuilder for use in a chained invocation
-
addAllOptions
Adds elements tooptionslist.- Parameters:
elements- An iterable of options elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newEnumArgument.- Returns:
- An immutable instance of EnumArgument
- Throws:
IllegalStateException- if any required attributes are missing
-