Class ImmutableGwtStepImplementationDto.Builder

java.lang.Object
com.chutneytesting.scenario.api.raw.dto.ImmutableGwtStepImplementationDto.Builder
Enclosing class:
ImmutableGwtStepImplementationDto

@NotThreadSafe public static final class ImmutableGwtStepImplementationDto.Builder extends Object
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 Details

    • from

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder from(GwtStepImplementationDto instance)
      Fill a builder with attribute values from the provided GwtStepImplementationDto instance. 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:
      this builder for use in a chained invocation
    • task

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder task(String task)
      Initializes the value for the task attribute.

      If not set, this attribute will have a default value as returned by the initializer of task.

      Parameters:
      task - The value for task
      Returns:
      this builder for use in a chained invocation
    • type

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder type(String type)
      Initializes the value for the type attribute.

      If not set, this attribute will have a default value as returned by the initializer of type.

      Parameters:
      type - The value for type
      Returns:
      this builder for use in a chained invocation
    • target

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder target(String target)
      Initializes the value for the target attribute.

      If not set, this attribute will have a default value as returned by the initializer of target.

      Parameters:
      target - The value for target
      Returns:
      this builder for use in a chained invocation
    • xRef

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder xRef(String xRef)
      Initializes the value for the xRef attribute.

      If not set, this attribute will have a default value as returned by the initializer of xRef.

      Parameters:
      xRef - The value for xRef
      Returns:
      this builder for use in a chained invocation
    • putInputs

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putInputs(String key, Object value)
      Put one entry to the inputs map.
      Parameters:
      key - The key in the inputs map
      value - The associated value in the inputs map
      Returns:
      this builder for use in a chained invocation
    • putInputs

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putInputs(Map.Entry<String,? extends Object> entry)
      Put one entry to the inputs map. Nulls are not permitted
      Parameters:
      entry - The key and value entry
      Returns:
      this builder 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 the inputs map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the inputs map
      Returns:
      this builder 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 to inputs map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the inputs map
      Returns:
      this builder for use in a chained invocation
    • putOutputs

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putOutputs(String key, Object value)
      Put one entry to the outputs map.
      Parameters:
      key - The key in the outputs map
      value - The associated value in the outputs map
      Returns:
      this builder for use in a chained invocation
    • putOutputs

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putOutputs(Map.Entry<String,? extends Object> entry)
      Put one entry to the outputs map. Nulls are not permitted
      Parameters:
      entry - The key and value entry
      Returns:
      this builder 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 the outputs map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the outputs map
      Returns:
      this builder 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 to outputs map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the outputs map
      Returns:
      this builder for use in a chained invocation
    • putValidations

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putValidations(String key, Object value)
      Put one entry to the validations map.
      Parameters:
      key - The key in the validations map
      value - The associated value in the validations map
      Returns:
      this builder for use in a chained invocation
    • putValidations

      @CanIgnoreReturnValue public final ImmutableGwtStepImplementationDto.Builder putValidations(Map.Entry<String,? extends Object> entry)
      Put one entry to the validations map. Nulls are not permitted
      Parameters:
      entry - The key and value entry
      Returns:
      this builder 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 the validations map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the validations map
      Returns:
      this builder 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 to validations map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the validations map
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of GwtStepImplementationDto
      Throws:
      IllegalStateException - if any required attributes are missing