Class ImmutableGwtStepImplementationDto.Builder
java.lang.Object
com.chutneytesting.scenario.api.raw.dto.ImmutableGwtStepImplementationDto.Builder
- Enclosing class:
- ImmutableGwtStepImplementationDto
Builds instances of type
ImmutableGwtStepImplementationDto.
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 newImmutableGwtStepImplementationDto.from(GwtStepImplementationDto instance) Fill a builder with attribute values from the providedGwtStepImplementationDtoinstance.Sets or replaces all mappings from the specified map as entries for theinputsmap.Sets or replaces all mappings from the specified map as entries for theoutputsmap.putAllInputs(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries toinputsmap.putAllOutputs(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tooutputsmap.putAllValidations(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tovalidationsmap.Put one entry to theinputsmap.Put one entry to theinputsmap.putOutputs(String key, Object value) Put one entry to theoutputsmap.putOutputs(Map.Entry<String, ? extends Object> entry) Put one entry to theoutputsmap.putValidations(String key, Object value) Put one entry to thevalidationsmap.putValidations(Map.Entry<String, ? extends Object> entry) Put one entry to thevalidationsmap.Initializes the value for thetargetattribute.Initializes the value for thetaskattribute.Initializes the value for thetypeattribute.validations(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thevalidationsmap.Initializes the value for thexRefattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder from(GwtStepImplementationDto instance) Fill a builder with attribute values from the providedGwtStepImplementationDtoinstance. 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
-
task
Initializes the value for thetaskattribute.If not set, this attribute will have a default value as returned by the initializer of
task.- Parameters:
task- The value for task- Returns:
thisbuilder for use in a chained invocation
-
type
Initializes the value for thetypeattribute.If not set, this attribute will have a default value as returned by the initializer of
type.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
target
Initializes the value for thetargetattribute.If not set, this attribute will have a default value as returned by the initializer of
target.- Parameters:
target- The value for target- Returns:
thisbuilder for use in a chained invocation
-
xRef
Initializes the value for thexRefattribute.If not set, this attribute will have a default value as returned by the initializer of
xRef.- Parameters:
xRef- The value for xRef- Returns:
thisbuilder for use in a chained invocation
-
putInputs
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putInputs(String key, Object value) Put one entry to theinputsmap.- Parameters:
key- The key in the inputs mapvalue- The associated value in the inputs map- Returns:
thisbuilder for use in a chained invocation
-
putInputs
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putInputs(Map.Entry<String, ? extends Object> entry) Put one entry to theinputsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
inputs
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder inputs(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for theinputsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the inputs map- Returns:
thisbuilder for use in a chained invocation
-
putAllInputs
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putAllInputs(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries toinputsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the inputs map- Returns:
thisbuilder for use in a chained invocation
-
putOutputs
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putOutputs(String key, Object value) Put one entry to theoutputsmap.- Parameters:
key- The key in the outputs mapvalue- The associated value in the outputs map- Returns:
thisbuilder for use in a chained invocation
-
putOutputs
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putOutputs(Map.Entry<String, ? extends Object> entry) Put one entry to theoutputsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
outputs
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder outputs(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for theoutputsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the outputs map- Returns:
thisbuilder for use in a chained invocation
-
putAllOutputs
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putAllOutputs(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tooutputsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the outputs map- Returns:
thisbuilder for use in a chained invocation
-
putValidations
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putValidations(String key, Object value) Put one entry to thevalidationsmap.- Parameters:
key- The key in the validations mapvalue- The associated value in the validations map- Returns:
thisbuilder for use in a chained invocation
-
putValidations
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putValidations(Map.Entry<String, ? extends Object> entry) Put one entry to thevalidationsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
validations
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder validations(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thevalidationsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the validations map- Returns:
thisbuilder for use in a chained invocation
-
putAllValidations
@CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putAllValidations(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tovalidationsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the validations map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableGwtStepImplementationDto.- Returns:
- An immutable instance of GwtStepImplementationDto
- Throws:
IllegalStateException- if any required attributes are missing
-