Package io.resys.hdes.client.api.ast
Class ImmutableAstCommandRange.Builder
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableAstCommandRange.Builder
- Enclosing class:
- ImmutableAstCommandRange
Builds instances of type
ImmutableAstCommandRange.
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 TypeMethodDescriptionbuild()Builds a newImmutableAstCommandRange.Initializes the value for thecolumnattribute.end(int end) Initializes the value for theendattribute.from(AstBody.AstCommandRange instance) Fill a builder with attribute values from the providedAstCommandRangeinstance.Initializes the value for theinsertattribute.start(int start) Initializes the value for thestartattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableAstCommandRange.Builder from(AstBody.AstCommandRange instance) Fill a builder with attribute values from the providedAstCommandRangeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
start
Initializes the value for thestartattribute.- Parameters:
start- The value for start- Returns:
thisbuilder for use in a chained invocation
-
end
Initializes the value for theendattribute.- Parameters:
end- The value for end- Returns:
thisbuilder for use in a chained invocation
-
column
@CanIgnoreReturnValue public final ImmutableAstCommandRange.Builder column(@Nullable Integer column) Initializes the value for thecolumnattribute.- Parameters:
column- The value for column (can benull)- Returns:
thisbuilder for use in a chained invocation
-
insert
@CanIgnoreReturnValue public final ImmutableAstCommandRange.Builder insert(@Nullable Boolean insert) Initializes the value for theinsertattribute.- Parameters:
insert- The value for insert (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAstCommandRange.- Returns:
- An immutable instance of AstCommandRange
- Throws:
IllegalStateException- if any required attributes are missing
-