Class ImmutableComposableStepDto
java.lang.Object
com.chutneytesting.component.scenario.api.dto.ImmutableComposableStepDto
- All Implemented Interfaces:
ComposableStepDto
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableComposableStepDto
extends Object
implements ComposableStepDto
Immutable implementation of
ComposableStepDto.
Use the builder to create immutable instances:
ImmutableComposableStepDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableComposableStepDto.Nested classes/interfaces inherited from interface com.chutneytesting.component.scenario.api.dto.ComposableStepDto
ComposableStepDto.StepUsage -
Field Summary
Fields inherited from interface com.chutneytesting.component.scenario.api.dto.ComposableStepDto
stepDtoComparator -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableComposableStepDto.static ImmutableComposableStepDtocopyOf(ComposableStepDto instance) Creates an immutable copy of aComposableStepDtovalue.booleanThis instance is equal to all instances ofImmutableComposableStepDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:id,name,strategy,usage,task,steps,defaultParameters,executionParameters,tags.id()name()steps()strategy()tags()task()toString()Prints the immutable valueComposableStepDtowith attribute values.usage()withDefaultParameters(KeyValue... elements) Copy the current immutable object with elements that replace the content ofdefaultParameters.withDefaultParameters(Iterable<? extends KeyValue> elements) Copy the current immutable object with elements that replace the content ofdefaultParameters.withExecutionParameters(KeyValue... elements) Copy the current immutable object with elements that replace the content ofexecutionParameters.withExecutionParameters(Iterable<? extends KeyValue> elements) Copy the current immutable object with elements that replace the content ofexecutionParameters.Copy the current immutable object by setting a present value for the optionalidattribute.Copy the current immutable object by setting an optional value for theidattribute.Copy the current immutable object by setting a value for thenameattribute.withSteps(ComposableStepDto... elements) Copy the current immutable object with elements that replace the content ofsteps.withSteps(Iterable<? extends ComposableStepDto> elements) Copy the current immutable object with elements that replace the content ofsteps.withStrategy(StrategyDto value) Copy the current immutable object by setting a value for thestrategyattribute.Copy the current immutable object with elements that replace the content oftags.Copy the current immutable object with elements that replace the content oftags.Copy the current immutable object by setting a present value for the optionaltaskattribute.Copy the current immutable object by setting an optional value for thetaskattribute.Copy the current immutable object by setting a value for theusageattribute.
-
Method Details
-
id
- Specified by:
idin interfaceComposableStepDto- Returns:
- The value of the
idattribute
-
name
- Specified by:
namein interfaceComposableStepDto- Returns:
- The value of the
nameattribute
-
strategy
- Specified by:
strategyin interfaceComposableStepDto- Returns:
- The value of the
strategyattribute
-
usage
- Specified by:
usagein interfaceComposableStepDto- Returns:
- The value of the
usageattribute
-
task
- Specified by:
taskin interfaceComposableStepDto- Returns:
- The value of the
taskattribute
-
steps
- Specified by:
stepsin interfaceComposableStepDto- Returns:
- The value of the
stepsattribute
-
defaultParameters
- Specified by:
defaultParametersin interfaceComposableStepDto- Returns:
- The value of the
defaultParametersattribute
-
executionParameters
- Specified by:
executionParametersin interfaceComposableStepDto- Returns:
- The value of the
executionParametersattribute
-
tags
- Specified by:
tagsin interfaceComposableStepDto- Returns:
- The value of the
tagsattribute
-
withId
Copy the current immutable object by setting a present value for the optionalidattribute.- Parameters:
value- The value for id- Returns:
- A modified copy of
thisobject
-
withId
Copy the current immutable object by setting an optional value for theidattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for id- Returns:
- A modified copy of
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withStrategy
Copy the current immutable object by setting a value for thestrategyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for strategy- Returns:
- A modified copy of the
thisobject
-
withUsage
Copy the current immutable object by setting a value for theusageattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for usage- Returns:
- A modified copy of the
thisobject
-
withTask
Copy the current immutable object by setting a present value for the optionaltaskattribute.- Parameters:
value- The value for task- Returns:
- A modified copy of
thisobject
-
withTask
Copy the current immutable object by setting an optional value for thetaskattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for task- Returns:
- A modified copy of
thisobject
-
withSteps
Copy the current immutable object with elements that replace the content ofsteps.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSteps
Copy the current immutable object with elements that replace the content ofsteps. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of steps elements to set- Returns:
- A modified copy of
thisobject
-
withDefaultParameters
Copy the current immutable object with elements that replace the content ofdefaultParameters.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDefaultParameters
public final ImmutableComposableStepDto withDefaultParameters(Iterable<? extends KeyValue> elements) Copy the current immutable object with elements that replace the content ofdefaultParameters. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of defaultParameters elements to set- Returns:
- A modified copy of
thisobject
-
withExecutionParameters
Copy the current immutable object with elements that replace the content ofexecutionParameters.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withExecutionParameters
public final ImmutableComposableStepDto withExecutionParameters(Iterable<? extends KeyValue> elements) Copy the current immutable object with elements that replace the content ofexecutionParameters. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of executionParameters elements to set- Returns:
- A modified copy of
thisobject
-
withTags
Copy the current immutable object with elements that replace the content oftags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTags
Copy the current immutable object with elements that replace the content oftags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of tags elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableComposableStepDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,name,strategy,usage,task,steps,defaultParameters,executionParameters,tags. -
toString
Prints the immutable valueComposableStepDtowith attribute values. -
copyOf
Creates an immutable copy of aComposableStepDtovalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ComposableStepDto instance
-
builder
Creates a builder forImmutableComposableStepDto.ImmutableComposableStepDto.builder() .id(String) // optionalid.name(String) // requiredname.strategy(com.chutneytesting.component.scenario.api.dto.StrategyDto) // optionalstrategy.usage(com.chutneytesting.component.scenario.api.dto.ComposableStepDto.StepUsage) // optionalusage.task(String) // optionaltask.addSteps|addAllSteps(com.chutneytesting.component.scenario.api.dto.ComposableStepDto) //stepselements .addDefaultParameters|addAllDefaultParameters(com.chutneytesting.server.core.domain.tools.ui.KeyValue) //defaultParameterselements .addExecutionParameters|addAllExecutionParameters(com.chutneytesting.server.core.domain.tools.ui.KeyValue) //executionParameterselements .addTags|addAllTags(String) //tagselements .build();- Returns:
- A new ImmutableComposableStepDto builder
-