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 ofRawTestCaseDto.Use the builder to create immutable instances:
ImmutableRawTestCaseDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawTestCaseDto.BuilderBuilds instances of typeImmutableRawTestCaseDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringauthor()static ImmutableRawTestCaseDto.Builderbuilder()Creates a builder forImmutableRawTestCaseDto.static ImmutableRawTestCaseDtocopyOf(RawTestCaseDto instance)Creates an immutable copy of aRawTestCaseDtovalue.InstantcreationDate()Optional<String>description()booleanequals(Object another)This instance is equal to all instances ofImmutableRawTestCaseDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:scenario,id,title,description,tags,creationDate,author,updateDate,version,parameters.Optional<String>id()List<KeyValue>parameters()Stringscenario()List<String>tags()Stringtitle()StringtoString()Prints the immutable valueRawTestCaseDtowith attribute values.InstantupdateDate()Integerversion()ImmutableRawTestCaseDtowithAuthor(String value)Copy the current immutable object by setting a value for theauthorattribute.ImmutableRawTestCaseDtowithCreationDate(Instant value)Copy the current immutable object by setting a value for thecreationDateattribute.ImmutableRawTestCaseDtowithDescription(String value)Copy the current immutable object by setting a present value for the optionaldescriptionattribute.ImmutableRawTestCaseDtowithDescription(Optional<String> optional)Copy the current immutable object by setting an optional value for thedescriptionattribute.ImmutableRawTestCaseDtowithId(String value)Copy the current immutable object by setting a present value for the optionalidattribute.ImmutableRawTestCaseDtowithId(Optional<String> optional)Copy the current immutable object by setting an optional value for theidattribute.ImmutableRawTestCaseDtowithParameters(KeyValue... elements)Copy the current immutable object with elements that replace the content ofparameters.ImmutableRawTestCaseDtowithParameters(Iterable<? extends KeyValue> elements)Copy the current immutable object with elements that replace the content ofparameters.ImmutableRawTestCaseDtowithScenario(String value)Copy the current immutable object by setting a value for thescenarioattribute.ImmutableRawTestCaseDtowithTags(Iterable<String> elements)Copy the current immutable object with elements that replace the content oftags.ImmutableRawTestCaseDtowithTags(String... elements)Copy the current immutable object with elements that replace the content oftags.ImmutableRawTestCaseDtowithTitle(String value)Copy the current immutable object by setting a value for thetitleattribute.ImmutableRawTestCaseDtowithUpdateDate(Instant value)Copy the current immutable object by setting a value for theupdateDateattribute.ImmutableRawTestCaseDtowithVersion(Integer value)Copy the current immutable object by setting a value for theversionattribute.
-
-
-
Method Detail
-
scenario
public String scenario()
- Specified by:
scenarioin interfaceRawTestCaseDto- Returns:
- The value of the
scenarioattribute
-
id
public Optional<String> id()
- Specified by:
idin interfaceRawTestCaseDto- Returns:
- The value of the
idattribute
-
title
public String title()
- Specified by:
titlein interfaceRawTestCaseDto- Returns:
- The value of the
titleattribute
-
description
public Optional<String> description()
- Specified by:
descriptionin interfaceRawTestCaseDto- Returns:
- The value of the
descriptionattribute
-
tags
public List<String> tags()
- Specified by:
tagsin interfaceRawTestCaseDto- Returns:
- The value of the
tagsattribute
-
creationDate
public Instant creationDate()
- Specified by:
creationDatein interfaceRawTestCaseDto- Returns:
- The value of the
creationDateattribute
-
author
public String author()
- Specified by:
authorin interfaceRawTestCaseDto- Returns:
- The value of the
authorattribute
-
updateDate
public Instant updateDate()
- Specified by:
updateDatein interfaceRawTestCaseDto- Returns:
- The value of the
updateDateattribute
-
version
public Integer version()
- Specified by:
versionin interfaceRawTestCaseDto- Returns:
- The value of the
versionattribute
-
parameters
public List<KeyValue> parameters()
- Specified by:
parametersin interfaceRawTestCaseDto- Returns:
- The value of the
parametersattribute
-
withScenario
public final ImmutableRawTestCaseDto withScenario(String value)
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
public final ImmutableRawTestCaseDto 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 ImmutableRawTestCaseDto 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 ImmutableRawTestCaseDto 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 ImmutableRawTestCaseDto 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 ImmutableRawTestCaseDto 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
-
withTags
public final ImmutableRawTestCaseDto 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 ImmutableRawTestCaseDto 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
-
withCreationDate
public final ImmutableRawTestCaseDto 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
-
withAuthor
public final ImmutableRawTestCaseDto 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 ImmutableRawTestCaseDto 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 ImmutableRawTestCaseDto 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
-
withParameters
public final ImmutableRawTestCaseDto withParameters(KeyValue... elements)
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
public final ImmutableRawTestCaseDto withParameters(Iterable<? extends KeyValue> elements)
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
public boolean equals(@Nullable Object another)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,creationDate,author,updateDate,version,parameters.
-
toString
public String toString()
Prints the immutable valueRawTestCaseDtowith attribute values.
-
copyOf
public static ImmutableRawTestCaseDto copyOf(RawTestCaseDto instance)
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
public static ImmutableRawTestCaseDto.Builder builder()
Creates a builder forImmutableRawTestCaseDto.ImmutableRawTestCaseDto.builder() .scenario(String) // requiredscenario.id(String) // optionalid.title(String) // requiredtitle.description(String) // optionaldescription.addTags|addAllTags(String) //tagselements .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
-
-