Class ImmutableFlowProgramStepWhenThenPointer.Builder
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowProgramStepWhenThenPointer.Builder
- Enclosing class:
- ImmutableFlowProgramStepWhenThenPointer
@NotThreadSafe
public static final class ImmutableFlowProgramStepWhenThenPointer.Builder
extends Object
Builds instances of type
ImmutableFlowProgramStepWhenThenPointer.
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 TypeMethodDescriptionaddAllConditions(Iterable<? extends FlowProgram.FlowProgramStepConditionalThenPointer> elements) Adds elements toconditionslist.Adds one element toconditionslist.Adds elements toconditionslist.build()Builds a newImmutableFlowProgramStepWhenThenPointer.conditions(Iterable<? extends FlowProgram.FlowProgramStepConditionalThenPointer> elements) Sets or replaces all elements forconditionslist.from(FlowProgram.FlowProgramStepPointer instance) Fill a builder with attribute values from the providedio.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepPointerinstance.Fill a builder with attribute values from the providedio.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepWhenThenPointerinstance.Initializes the value for thetypeattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableFlowProgramStepWhenThenPointer.Builder from(FlowProgram.FlowProgramStepWhenThenPointer instance) Fill a builder with attribute values from the providedio.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepWhenThenPointerinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableFlowProgramStepWhenThenPointer.Builder from(FlowProgram.FlowProgramStepPointer instance) Fill a builder with attribute values from the providedio.resys.hdes.client.api.programs.FlowProgram.FlowProgramStepPointerinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
type
@CanIgnoreReturnValue public final ImmutableFlowProgramStepWhenThenPointer.Builder type(FlowProgram.FlowProgramStepPointerType type) Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
addConditions
@CanIgnoreReturnValue public final ImmutableFlowProgramStepWhenThenPointer.Builder addConditions(FlowProgram.FlowProgramStepConditionalThenPointer element) Adds one element toconditionslist.- Parameters:
element- A conditions element- Returns:
thisbuilder for use in a chained invocation
-
addConditions
@CanIgnoreReturnValue public final ImmutableFlowProgramStepWhenThenPointer.Builder addConditions(FlowProgram.FlowProgramStepConditionalThenPointer... elements) Adds elements toconditionslist.- Parameters:
elements- An array of conditions elements- Returns:
thisbuilder for use in a chained invocation
-
conditions
@CanIgnoreReturnValue public final ImmutableFlowProgramStepWhenThenPointer.Builder conditions(Iterable<? extends FlowProgram.FlowProgramStepConditionalThenPointer> elements) Sets or replaces all elements forconditionslist.- Parameters:
elements- An iterable of conditions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllConditions
@CanIgnoreReturnValue public final ImmutableFlowProgramStepWhenThenPointer.Builder addAllConditions(Iterable<? extends FlowProgram.FlowProgramStepConditionalThenPointer> elements) Adds elements toconditionslist.- Parameters:
elements- An iterable of conditions elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableFlowProgramStepWhenThenPointer.- Returns:
- An immutable instance of FlowProgramStepWhenThenPointer
- Throws:
IllegalStateException- if any required attributes are missing
-