Class ImmutableComposableTestCaseDto
- java.lang.Object
-
- com.chutneytesting.component.scenario.api.dto.ImmutableComposableTestCaseDto
-
- All Implemented Interfaces:
ComposableTestCaseDto
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableComposableTestCaseDto extends Object implements ComposableTestCaseDto
Immutable implementation ofComposableTestCaseDto.Use the builder to create immutable instances:
ImmutableComposableTestCaseDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableComposableTestCaseDto.BuilderBuilds instances of typeImmutableComposableTestCaseDto.-
Nested classes/interfaces inherited from interface com.chutneytesting.component.scenario.api.dto.ComposableTestCaseDto
ComposableTestCaseDto.ComposableScenarioDto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringauthor()static ImmutableComposableTestCaseDto.Builderbuilder()Creates a builder forImmutableComposableTestCaseDto.static ImmutableComposableTestCaseDtocopyOf(ComposableTestCaseDto instance)Creates an immutable copy of aComposableTestCaseDtovalue.InstantcreationDate()Optional<String>datasetId()Optional<String>description()booleanequals(Object another)This instance is equal to all instances ofImmutableComposableTestCaseDtothat have equal attribute values.List<KeyValue>executionParameters()inthashCode()Computes a hash code from attributes:id,title,description,creationDate,tags,scenario,datasetId,author,updateDate,version,executionParameters.Optional<String>id()ComposableTestCaseDto.ComposableScenarioDtoscenario()List<String>tags()Stringtitle()StringtoString()Prints the immutable valueComposableTestCaseDtowith attribute values.InstantupdateDate()Integerversion()ImmutableComposableTestCaseDtowithAuthor(String value)Copy the current immutable object by setting a value for theauthorattribute.ImmutableComposableTestCaseDtowithCreationDate(Instant value)Copy the current immutable object by setting a value for thecreationDateattribute.ImmutableComposableTestCaseDtowithDatasetId(String value)Copy the current immutable object by setting a present value for the optionaldatasetIdattribute.ImmutableComposableTestCaseDtowithDatasetId(Optional<String> optional)Copy the current immutable object by setting an optional value for thedatasetIdattribute.ImmutableComposableTestCaseDtowithDescription(String value)Copy the current immutable object by setting a present value for the optionaldescriptionattribute.ImmutableComposableTestCaseDtowithDescription(Optional<String> optional)Copy the current immutable object by setting an optional value for thedescriptionattribute.ImmutableComposableTestCaseDtowithExecutionParameters(KeyValue... elements)Copy the current immutable object with elements that replace the content ofexecutionParameters.ImmutableComposableTestCaseDtowithExecutionParameters(Iterable<? extends KeyValue> elements)Copy the current immutable object with elements that replace the content ofexecutionParameters.ImmutableComposableTestCaseDtowithId(String value)Copy the current immutable object by setting a present value for the optionalidattribute.ImmutableComposableTestCaseDtowithId(Optional<String> optional)Copy the current immutable object by setting an optional value for theidattribute.ImmutableComposableTestCaseDtowithScenario(ComposableTestCaseDto.ComposableScenarioDto value)Copy the current immutable object by setting a value for thescenarioattribute.ImmutableComposableTestCaseDtowithTags(Iterable<String> elements)Copy the current immutable object with elements that replace the content oftags.ImmutableComposableTestCaseDtowithTags(String... elements)Copy the current immutable object with elements that replace the content oftags.ImmutableComposableTestCaseDtowithTitle(String value)Copy the current immutable object by setting a value for thetitleattribute.ImmutableComposableTestCaseDtowithUpdateDate(Instant value)Copy the current immutable object by setting a value for theupdateDateattribute.ImmutableComposableTestCaseDtowithVersion(Integer value)Copy the current immutable object by setting a value for theversionattribute.
-
-
-
Method Detail
-
id
public Optional<String> id()
- Specified by:
idin interfaceComposableTestCaseDto- Returns:
- The value of the
idattribute
-
title
public String title()
- Specified by:
titlein interfaceComposableTestCaseDto- Returns:
- The value of the
titleattribute
-
description
public Optional<String> description()
- Specified by:
descriptionin interfaceComposableTestCaseDto- Returns:
- The value of the
descriptionattribute
-
creationDate
public Instant creationDate()
- Specified by:
creationDatein interfaceComposableTestCaseDto- Returns:
- The value of the
creationDateattribute
-
tags
public List<String> tags()
- Specified by:
tagsin interfaceComposableTestCaseDto- Returns:
- The value of the
tagsattribute
-
scenario
public ComposableTestCaseDto.ComposableScenarioDto scenario()
- Specified by:
scenarioin interfaceComposableTestCaseDto- Returns:
- The value of the
scenarioattribute
-
datasetId
public Optional<String> datasetId()
- Specified by:
datasetIdin interfaceComposableTestCaseDto- Returns:
- The value of the
datasetIdattribute
-
author
public String author()
- Specified by:
authorin interfaceComposableTestCaseDto- Returns:
- The value of the
authorattribute
-
updateDate
public Instant updateDate()
- Specified by:
updateDatein interfaceComposableTestCaseDto- Returns:
- The value of the
updateDateattribute
-
version
public Integer version()
- Specified by:
versionin interfaceComposableTestCaseDto- Returns:
- The value of the
versionattribute
-
executionParameters
public List<KeyValue> executionParameters()
- Specified by:
executionParametersin interfaceComposableTestCaseDto- Returns:
- The value of the
executionParametersattribute
-
withId
public final ImmutableComposableTestCaseDto 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 ImmutableComposableTestCaseDto 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
-
withTitle
public final ImmutableComposableTestCaseDto withTitle(String value)
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy of the
thisobject
-
withDescription
public final ImmutableComposableTestCaseDto withDescription(String value)
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description- Returns:
- A modified copy of
thisobject
-
withDescription
public final ImmutableComposableTestCaseDto withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for description- Returns:
- A modified copy of
thisobject
-
withCreationDate
public final ImmutableComposableTestCaseDto withCreationDate(Instant value)
Copy the current immutable object by setting a value for thecreationDateattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for creationDate- Returns:
- A modified copy of the
thisobject
-
withTags
public final ImmutableComposableTestCaseDto 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 ImmutableComposableTestCaseDto 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
-
withScenario
public final ImmutableComposableTestCaseDto withScenario(ComposableTestCaseDto.ComposableScenarioDto value)
Copy the current immutable object by setting a value for thescenarioattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for scenario- Returns:
- A modified copy of the
thisobject
-
withDatasetId
public final ImmutableComposableTestCaseDto withDatasetId(String value)
Copy the current immutable object by setting a present value for the optionaldatasetIdattribute.- Parameters:
value- The value for datasetId- Returns:
- A modified copy of
thisobject
-
withDatasetId
public final ImmutableComposableTestCaseDto withDatasetId(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedatasetIdattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for datasetId- Returns:
- A modified copy of
thisobject
-
withAuthor
public final ImmutableComposableTestCaseDto withAuthor(String value)
Copy the current immutable object by setting a value for theauthorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for author- Returns:
- A modified copy of the
thisobject
-
withUpdateDate
public final ImmutableComposableTestCaseDto withUpdateDate(Instant value)
Copy the current immutable object by setting a value for theupdateDateattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for updateDate- Returns:
- A modified copy of the
thisobject
-
withVersion
public final ImmutableComposableTestCaseDto withVersion(Integer value)
Copy the current immutable object by setting a value for theversionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version- Returns:
- A modified copy of the
thisobject
-
withExecutionParameters
public final ImmutableComposableTestCaseDto 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 ImmutableComposableTestCaseDto 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
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableComposableTestCaseDtothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,title,description,creationDate,tags,scenario,datasetId,author,updateDate,version,executionParameters.
-
toString
public String toString()
Prints the immutable valueComposableTestCaseDtowith attribute values.
-
copyOf
public static ImmutableComposableTestCaseDto copyOf(ComposableTestCaseDto instance)
Creates an immutable copy of aComposableTestCaseDtovalue. 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 ComposableTestCaseDto instance
-
builder
public static ImmutableComposableTestCaseDto.Builder builder()
Creates a builder forImmutableComposableTestCaseDto.ImmutableComposableTestCaseDto.builder() .id(String) // optionalid.title(String) // requiredtitle.description(String) // optionaldescription.creationDate(java.time.Instant) // optionalcreationDate.addTags|addAllTags(String) //tagselements .scenario(com.chutneytesting.component.scenario.api.dto.ComposableTestCaseDto.ComposableScenarioDto) // requiredscenario.datasetId(String) // optionaldatasetId.author(String) // optionalauthor.updateDate(java.time.Instant) // optionalupdateDate.version(Integer) // optionalversion.addExecutionParameters|addAllExecutionParameters(com.chutneytesting.server.core.domain.tools.ui.KeyValue) //executionParameterselements .build();- Returns:
- A new ImmutableComposableTestCaseDto builder
-
-