Class ImmutableRawTestCaseDto
java.lang.Object
fr.enedis.chutney.scenario.api.raw.dto.ImmutableRawTestCaseDto
- All Implemented Interfaces:
RawTestCaseDto
@Generated(from="RawTestCaseDto",
generator="Immutables")
@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.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 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
-
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 or 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 or
thisif not changed
-
withId
Copy the current immutable object by setting an optional value for theidattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for id- Returns:
- A modified copy or
thisif not changed
-
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 or 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 or
thisif not changed
-
withDescription
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for description- Returns:
- A modified copy or
thisif not changed
-
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 or
thisif not changed
-
withDefaultDataset
Copy the current immutable object by setting a present value for the optionaldefaultDatasetattribute.- Parameters:
value- The value for defaultDataset- Returns:
- A modified copy or
thisif not changed
-
withDefaultDataset
Copy the current immutable object by setting an optional value for thedefaultDatasetattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for defaultDataset- Returns:
- A modified copy or
thisif not changed
-
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 or 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 or 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 or 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 or the
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. -
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(Optional<String>) // optionalid.title(String) // requiredtitle.description(Optional<String>) // optionaldescription.addTags|addAllTags(String) //tagselements .defaultDataset(Optional<String>) // optionaldefaultDataset.creationDate(java.time.Instant) // optionalcreationDate.author(String) // optionalauthor.updateDate(java.time.Instant) // optionalupdateDate.version(Integer) // optionalversion.build();- Returns:
- A new ImmutableRawTestCaseDto builder
-