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 ofComposableStepDto.Use the builder to create immutable instances:
ImmutableComposableStepDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableComposableStepDto.BuilderBuilds 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableComposableStepDto.Builderbuilder()Creates a builder forImmutableComposableStepDto.static ImmutableComposableStepDtocopyOf(ComposableStepDto instance)Creates an immutable copy of aComposableStepDtovalue.List<KeyValue>defaultParameters()booleanequals(Object another)This instance is equal to all instances ofImmutableComposableStepDtothat have equal attribute values.List<KeyValue>executionParameters()inthashCode()Computes a hash code from attributes:id,name,strategy,usage,task,steps,defaultParameters,executionParameters,tags.Optional<String>id()Stringname()List<ComposableStepDto>steps()StrategyDtostrategy()List<String>tags()Optional<String>task()StringtoString()Prints the immutable valueComposableStepDtowith attribute values.ComposableStepDto.StepUsageusage()ImmutableComposableStepDtowithDefaultParameters(KeyValue... elements)Copy the current immutable object with elements that replace the content ofdefaultParameters.ImmutableComposableStepDtowithDefaultParameters(Iterable<? extends KeyValue> elements)Copy the current immutable object with elements that replace the content ofdefaultParameters.ImmutableComposableStepDtowithExecutionParameters(KeyValue... elements)Copy the current immutable object with elements that replace the content ofexecutionParameters.ImmutableComposableStepDtowithExecutionParameters(Iterable<? extends KeyValue> elements)Copy the current immutable object with elements that replace the content ofexecutionParameters.ImmutableComposableStepDtowithId(String value)Copy the current immutable object by setting a present value for the optionalidattribute.ImmutableComposableStepDtowithId(Optional<String> optional)Copy the current immutable object by setting an optional value for theidattribute.ImmutableComposableStepDtowithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableComposableStepDtowithSteps(ComposableStepDto... elements)Copy the current immutable object with elements that replace the content ofsteps.ImmutableComposableStepDtowithSteps(Iterable<? extends ComposableStepDto> elements)Copy the current immutable object with elements that replace the content ofsteps.ImmutableComposableStepDtowithStrategy(StrategyDto value)Copy the current immutable object by setting a value for thestrategyattribute.ImmutableComposableStepDtowithTags(Iterable<String> elements)Copy the current immutable object with elements that replace the content oftags.ImmutableComposableStepDtowithTags(String... elements)Copy the current immutable object with elements that replace the content oftags.ImmutableComposableStepDtowithTask(String value)Copy the current immutable object by setting a present value for the optionaltaskattribute.ImmutableComposableStepDtowithTask(Optional<String> optional)Copy the current immutable object by setting an optional value for thetaskattribute.ImmutableComposableStepDtowithUsage(ComposableStepDto.StepUsage value)Copy the current immutable object by setting a value for theusageattribute.
-
-
-
Method Detail
-
id
public Optional<String> id()
- Specified by:
idin interfaceComposableStepDto- Returns:
- The value of the
idattribute
-
name
public String name()
- Specified by:
namein interfaceComposableStepDto- Returns:
- The value of the
nameattribute
-
strategy
public StrategyDto strategy()
- Specified by:
strategyin interfaceComposableStepDto- Returns:
- The value of the
strategyattribute
-
usage
public ComposableStepDto.StepUsage usage()
- Specified by:
usagein interfaceComposableStepDto- Returns:
- The value of the
usageattribute
-
task
public Optional<String> task()
- Specified by:
taskin interfaceComposableStepDto- Returns:
- The value of the
taskattribute
-
steps
public List<ComposableStepDto> steps()
- Specified by:
stepsin interfaceComposableStepDto- Returns:
- The value of the
stepsattribute
-
defaultParameters
public List<KeyValue> defaultParameters()
- Specified by:
defaultParametersin interfaceComposableStepDto- Returns:
- The value of the
defaultParametersattribute
-
executionParameters
public List<KeyValue> executionParameters()
- Specified by:
executionParametersin interfaceComposableStepDto- Returns:
- The value of the
executionParametersattribute
-
tags
public List<String> tags()
- Specified by:
tagsin interfaceComposableStepDto- Returns:
- The value of the
tagsattribute
-
withId
public final ImmutableComposableStepDto withId(String value)
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
public final ImmutableComposableStepDto withId(Optional<String> optional)
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
public final ImmutableComposableStepDto withName(String value)
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
public final ImmutableComposableStepDto withStrategy(StrategyDto value)
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
public final ImmutableComposableStepDto withUsage(ComposableStepDto.StepUsage value)
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
public final ImmutableComposableStepDto withTask(String value)
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
public final ImmutableComposableStepDto withTask(Optional<String> optional)
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
public final ImmutableComposableStepDto withSteps(ComposableStepDto... elements)
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
public final ImmutableComposableStepDto withSteps(Iterable<? extends ComposableStepDto> elements)
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
public final ImmutableComposableStepDto withDefaultParameters(KeyValue... elements)
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
public final ImmutableComposableStepDto withExecutionParameters(KeyValue... elements)
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
public final ImmutableComposableStepDto withTags(String... elements)
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
public final ImmutableComposableStepDto withTags(Iterable<String> elements)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueComposableStepDtowith attribute values.
-
copyOf
public static ImmutableComposableStepDto copyOf(ComposableStepDto instance)
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
public static ImmutableComposableStepDto.Builder 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
-
-