Class ImmutableRawTestCaseDto
java.lang.Object
com.chutneytesting.scenario.api.raw.dto.ImmutableRawTestCaseDto
- All Implemented Interfaces:
RawTestCaseDto
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableRawTestCaseDto
extends Object
implements RawTestCaseDto
Immutable implementation of
RawTestCaseDto.
Use the builder to create immutable instances:
ImmutableRawTestCaseDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableRawTestCaseDto. -
Method Summary
Modifier and TypeMethodDescriptionauthor()builder()Creates a builder forImmutableRawTestCaseDto.static ImmutableRawTestCaseDtocopyOf(RawTestCaseDto instance) Creates an immutable copy of aRawTestCaseDtovalue.booleanThis instance is equal to all instances ofImmutableRawTestCaseDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:scenario,id,title,description,tags,defaultDataset,creationDate,author,updateDate,version,parameters.id()scenario()tags()title()toString()Prints the immutable valueRawTestCaseDtowith attribute values.version()final ImmutableRawTestCaseDtowithAuthor(String value) Copy the current immutable object by setting a value for theauthorattribute.final ImmutableRawTestCaseDtowithCreationDate(Instant value) Copy the current immutable object by setting a value for thecreationDateattribute.final ImmutableRawTestCaseDtowithDefaultDataset(String value) Copy the current immutable object by setting a present value for the optionaldefaultDatasetattribute.final ImmutableRawTestCaseDtowithDefaultDataset(Optional<String> optional) Copy the current immutable object by setting an optional value for thedefaultDatasetattribute.final ImmutableRawTestCaseDtowithDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.final ImmutableRawTestCaseDtowithDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.final ImmutableRawTestCaseDtoCopy the current immutable object by setting a present value for the optionalidattribute.final ImmutableRawTestCaseDtoCopy the current immutable object by setting an optional value for theidattribute.final ImmutableRawTestCaseDtowithParameters(KeyValue... elements) Copy the current immutable object with elements that replace the content ofparameters.final ImmutableRawTestCaseDtowithParameters(Iterable<? extends KeyValue> elements) Copy the current immutable object with elements that replace the content ofparameters.final ImmutableRawTestCaseDtowithScenario(String value) Copy the current immutable object by setting a value for thescenarioattribute.final ImmutableRawTestCaseDtoCopy the current immutable object with elements that replace the content oftags.final ImmutableRawTestCaseDtoCopy the current immutable object with elements that replace the content oftags.final ImmutableRawTestCaseDtoCopy the current immutable object by setting a value for thetitleattribute.final ImmutableRawTestCaseDtowithUpdateDate(Instant value) Copy the current immutable object by setting a value for theupdateDateattribute.final ImmutableRawTestCaseDtowithVersion(Integer value) Copy the current immutable object by setting a value for theversionattribute.
-
Method Details
-
scenario
- Specified by:
scenarioin interfaceRawTestCaseDto- Returns:
- The value of the
scenarioattribute
-
id
- Specified by:
idin interfaceRawTestCaseDto- Returns:
- The value of the
idattribute
-
title
- Specified by:
titlein interfaceRawTestCaseDto- Returns:
- The value of the
titleattribute
-
description
- Specified by:
descriptionin interfaceRawTestCaseDto- Returns:
- The value of the
descriptionattribute
-
tags
- Specified by:
tagsin interfaceRawTestCaseDto- Returns:
- The value of the
tagsattribute
-
defaultDataset
- Specified by:
defaultDatasetin interfaceRawTestCaseDto- Returns:
- The value of the
defaultDatasetattribute
-
creationDate
- Specified by:
creationDatein interfaceRawTestCaseDto- Returns:
- The value of the
creationDateattribute
-
author
- Specified by:
authorin interfaceRawTestCaseDto- Returns:
- The value of the
authorattribute
-
updateDate
- Specified by:
updateDatein interfaceRawTestCaseDto- Returns:
- The value of the
updateDateattribute
-
version
- Specified by:
versionin interfaceRawTestCaseDto- Returns:
- The value of the
versionattribute
-
parameters
- Specified by:
parametersin interfaceRawTestCaseDto- Returns:
- The value of the
parametersattribute
-
withScenario
Copy the current immutable object by setting a value for thescenarioattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for scenario- Returns:
- A modified copy of the
thisobject
-
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
-
withTitle
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
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
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
-
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
-
withDefaultDataset
Copy the current immutable object by setting a present value for the optionaldefaultDatasetattribute.- Parameters:
value- The value for defaultDataset- Returns:
- A modified copy of
thisobject
-
withDefaultDataset
Copy the current immutable object by setting an optional value for thedefaultDatasetattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for defaultDataset- Returns:
- A modified copy of
thisobject
-
withCreationDate
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
-
withAuthor
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
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
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
-
withParameters
Copy the current immutable object with elements that replace the content ofparameters.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withParameters
Copy the current immutable object with elements that replace the content ofparameters. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of parameters elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableRawTestCaseDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:scenario,id,title,description,tags,defaultDataset,creationDate,author,updateDate,version,parameters. -
toString
Prints the immutable valueRawTestCaseDtowith attribute values. -
copyOf
Creates an immutable copy of aRawTestCaseDtovalue. 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 RawTestCaseDto instance
-
builder
Creates a builder forImmutableRawTestCaseDto.ImmutableRawTestCaseDto.builder() .scenario(String) // requiredscenario.id(String) // optionalid.title(String) // requiredtitle.description(String) // optionaldescription.addTags|addAllTags(String) //tagselements .defaultDataset(String) // optionaldefaultDataset.creationDate(java.time.Instant) // optionalcreationDate.author(String) // optionalauthor.updateDate(java.time.Instant) // optionalupdateDate.version(Integer) // optionalversion.addParameters|addAllParameters(com.chutneytesting.server.core.domain.tools.ui.KeyValue) //parameterselements .build();- Returns:
- A new ImmutableRawTestCaseDto builder
-