Class ImmutableFlowProgramStepBody.Builder
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableFlowProgramStepBody.Builder
- Enclosing class:
- ImmutableFlowProgramStepBody
Builds instances of type
ImmutableFlowProgramStepBody.
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 newImmutableFlowProgramStepBody.collection(Boolean collection) Initializes the value for thecollectionattribute.from(FlowProgram.FlowProgramStepBody instance) Fill a builder with attribute values from the providedFlowProgramStepBodyinstance.inputMapping(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for theinputMappingmap.putAllInputMapping(Map<String, ? extends String> entries) Put all mappings from the specified map as entries toinputMappingmap.putInputMapping(String key, String value) Put one entry to theinputMappingmap.putInputMapping(Map.Entry<String, ? extends String> entry) Put one entry to theinputMappingmap.Initializes the value for therefattribute.Initializes the value for therefTypeattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder from(FlowProgram.FlowProgramStepBody instance) Fill a builder with attribute values from the providedFlowProgramStepBodyinstance. 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
-
ref
Initializes the value for therefattribute.- Parameters:
ref- The value for ref- Returns:
thisbuilder for use in a chained invocation
-
refType
@CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder refType(FlowProgram.FlowProgramStepRefType refType) Initializes the value for therefTypeattribute.- Parameters:
refType- The value for refType- Returns:
thisbuilder for use in a chained invocation
-
putInputMapping
@CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder putInputMapping(String key, String value) Put one entry to theinputMappingmap.- Parameters:
key- The key in the inputMapping mapvalue- The associated value in the inputMapping map- Returns:
thisbuilder for use in a chained invocation
-
putInputMapping
@CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder putInputMapping(Map.Entry<String, ? extends String> entry) Put one entry to theinputMappingmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
inputMapping
@CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder inputMapping(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for theinputMappingmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the inputMapping map- Returns:
thisbuilder for use in a chained invocation
-
putAllInputMapping
@CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder putAllInputMapping(Map<String, ? extends String> entries) Put all mappings from the specified map as entries toinputMappingmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the inputMapping map- Returns:
thisbuilder for use in a chained invocation
-
collection
@CanIgnoreReturnValue public final ImmutableFlowProgramStepBody.Builder collection(Boolean collection) Initializes the value for thecollectionattribute.- Parameters:
collection- The value for collection- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableFlowProgramStepBody.- Returns:
- An immutable instance of FlowProgramStepBody
- Throws:
IllegalStateException- if any required attributes are missing
-