Package io.resys.hdes.client.api.ast
Class ImmutableFlowAstAutocomplete.Builder
java.lang.Object
io.resys.hdes.client.api.ast.ImmutableFlowAstAutocomplete.Builder
- Enclosing class:
- ImmutableFlowAstAutocomplete
Builds instances of type
ImmutableFlowAstAutocomplete.
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 TypeMethodDescriptionaddAllRange(Iterable<? extends AstBody.AstCommandRange> elements) Adds elements torangelist.addAllValue(Iterable<String> elements) Adds elements tovaluelist.addRange(AstBody.AstCommandRange element) Adds one element torangelist.addRange(AstBody.AstCommandRange... elements) Adds elements torangelist.Adds one element tovaluelist.Adds elements tovaluelist.build()Builds a newImmutableFlowAstAutocomplete.from(AstFlow.FlowAstAutocomplete instance) Fill a builder with attribute values from the providedFlowAstAutocompleteinstance.Initializes the value for theidattribute.range(Iterable<? extends AstBody.AstCommandRange> elements) Sets or replaces all elements forrangelist.Sets or replaces all elements forvaluelist.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableFlowAstAutocomplete.Builder from(AstFlow.FlowAstAutocomplete instance) Fill a builder with attribute values from the providedFlowAstAutocompleteinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
id
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
addRange
@CanIgnoreReturnValue public final ImmutableFlowAstAutocomplete.Builder addRange(AstBody.AstCommandRange element) Adds one element torangelist.- Parameters:
element- A range element- Returns:
thisbuilder for use in a chained invocation
-
addRange
@CanIgnoreReturnValue public final ImmutableFlowAstAutocomplete.Builder addRange(AstBody.AstCommandRange... elements) Adds elements torangelist.- Parameters:
elements- An array of range elements- Returns:
thisbuilder for use in a chained invocation
-
range
@CanIgnoreReturnValue public final ImmutableFlowAstAutocomplete.Builder range(Iterable<? extends AstBody.AstCommandRange> elements) Sets or replaces all elements forrangelist.- Parameters:
elements- An iterable of range elements- Returns:
thisbuilder for use in a chained invocation
-
addAllRange
@CanIgnoreReturnValue public final ImmutableFlowAstAutocomplete.Builder addAllRange(Iterable<? extends AstBody.AstCommandRange> elements) Adds elements torangelist.- Parameters:
elements- An iterable of range elements- Returns:
thisbuilder for use in a chained invocation
-
addValue
Adds one element tovaluelist.- Parameters:
element- A value element- Returns:
thisbuilder for use in a chained invocation
-
addValue
@CanIgnoreReturnValue public final ImmutableFlowAstAutocomplete.Builder addValue(String... elements) Adds elements tovaluelist.- Parameters:
elements- An array of value elements- Returns:
thisbuilder for use in a chained invocation
-
value
@CanIgnoreReturnValue public final ImmutableFlowAstAutocomplete.Builder value(Iterable<String> elements) Sets or replaces all elements forvaluelist.- Parameters:
elements- An iterable of value elements- Returns:
thisbuilder for use in a chained invocation
-
addAllValue
@CanIgnoreReturnValue public final ImmutableFlowAstAutocomplete.Builder addAllValue(Iterable<String> elements) Adds elements tovaluelist.- Parameters:
elements- An iterable of value elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableFlowAstAutocomplete.- Returns:
- An immutable instance of FlowAstAutocomplete
- Throws:
IllegalStateException- if any required attributes are missing
-