Class ImmutableGwtTestCaseDto
java.lang.Object
fr.enedis.chutney.scenario.api.raw.dto.ImmutableGwtTestCaseDto
- All Implemented Interfaces:
GwtTestCaseDto
@Generated(from="GwtTestCaseDto",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableGwtTestCaseDto
extends Object
implements GwtTestCaseDto
Immutable implementation of
GwtTestCaseDto.
Use the builder to create immutable instances:
ImmutableGwtTestCaseDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableGwtTestCaseDto. -
Method Summary
Modifier and TypeMethodDescriptionauthor()builder()Creates a builder forImmutableGwtTestCaseDto.static ImmutableGwtTestCaseDtocopyOf(GwtTestCaseDto instance) Creates an immutable copy of aGwtTestCaseDtovalue.booleanThis instance is equal to all instances ofImmutableGwtTestCaseDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:id,title,description,repositorySource,tags,executions,creationDate,scenario,defaultDataset,author,updateDate,version.id()scenario()tags()title()toString()Prints the immutable valueGwtTestCaseDtowith attribute values.version()final ImmutableGwtTestCaseDtowithAuthor(String value) Copy the current immutable object by setting a value for theauthorattribute.final ImmutableGwtTestCaseDtowithCreationDate(Instant value) Copy the current immutable object by setting a present value for the optionalcreationDateattribute.final ImmutableGwtTestCaseDtowithCreationDate(Optional<? extends Instant> optional) Copy the current immutable object by setting an optional value for thecreationDateattribute.final ImmutableGwtTestCaseDtowithDefaultDataset(String value) Copy the current immutable object by setting a present value for the optionaldefaultDatasetattribute.final ImmutableGwtTestCaseDtowithDefaultDataset(Optional<String> optional) Copy the current immutable object by setting an optional value for thedefaultDatasetattribute.final ImmutableGwtTestCaseDtowithDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.final ImmutableGwtTestCaseDtowithDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.final ImmutableGwtTestCaseDtowithExecutions(ExecutionSummaryDto... elements) Copy the current immutable object with elements that replace the content ofexecutions.final ImmutableGwtTestCaseDtowithExecutions(Iterable<? extends ExecutionSummaryDto> elements) Copy the current immutable object with elements that replace the content ofexecutions.final ImmutableGwtTestCaseDtoCopy the current immutable object by setting a present value for the optionalidattribute.final ImmutableGwtTestCaseDtoCopy the current immutable object by setting an optional value for theidattribute.final ImmutableGwtTestCaseDtowithRepositorySource(String value) Copy the current immutable object by setting a present value for the optionalrepositorySourceattribute.final ImmutableGwtTestCaseDtowithRepositorySource(Optional<String> optional) Copy the current immutable object by setting an optional value for therepositorySourceattribute.final ImmutableGwtTestCaseDtowithScenario(GwtScenarioDto value) Copy the current immutable object by setting a value for thescenarioattribute.final ImmutableGwtTestCaseDtoCopy the current immutable object with elements that replace the content oftags.final ImmutableGwtTestCaseDtoCopy the current immutable object with elements that replace the content oftags.final ImmutableGwtTestCaseDtoCopy the current immutable object by setting a value for thetitleattribute.final ImmutableGwtTestCaseDtowithUpdateDate(Instant value) Copy the current immutable object by setting a value for theupdateDateattribute.final ImmutableGwtTestCaseDtowithVersion(Integer value) Copy the current immutable object by setting a value for theversionattribute.
-
Method Details
-
id
- Specified by:
idin interfaceGwtTestCaseDto- Returns:
- The value of the
idattribute
-
title
- Specified by:
titlein interfaceGwtTestCaseDto- Returns:
- The value of the
titleattribute
-
description
- Specified by:
descriptionin interfaceGwtTestCaseDto- Returns:
- The value of the
descriptionattribute
-
repositorySource
- Specified by:
repositorySourcein interfaceGwtTestCaseDto- Returns:
- The value of the
repositorySourceattribute
-
tags
- Specified by:
tagsin interfaceGwtTestCaseDto- Returns:
- The value of the
tagsattribute
-
executions
- Specified by:
executionsin interfaceGwtTestCaseDto- Returns:
- The value of the
executionsattribute
-
creationDate
- Specified by:
creationDatein interfaceGwtTestCaseDto- Returns:
- The value of the
creationDateattribute
-
scenario
- Specified by:
scenarioin interfaceGwtTestCaseDto- Returns:
- The value of the
scenarioattribute
-
defaultDataset
- Specified by:
defaultDatasetin interfaceGwtTestCaseDto- Returns:
- The value of the
defaultDatasetattribute
-
author
- Specified by:
authorin interfaceGwtTestCaseDto- Returns:
- The value of the
authorattribute
-
updateDate
- Specified by:
updateDatein interfaceGwtTestCaseDto- Returns:
- The value of the
updateDateattribute
-
version
- Specified by:
versionin interfaceGwtTestCaseDto- Returns:
- The value of the
versionattribute
-
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
-
withRepositorySource
Copy the current immutable object by setting a present value for the optionalrepositorySourceattribute.- Parameters:
value- The value for repositorySource- Returns:
- A modified copy or
thisif not changed
-
withRepositorySource
Copy the current immutable object by setting an optional value for therepositorySourceattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for repositorySource- 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
-
withExecutions
Copy the current immutable object with elements that replace the content ofexecutions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withExecutions
public final ImmutableGwtTestCaseDto withExecutions(Iterable<? extends ExecutionSummaryDto> elements) Copy the current immutable object with elements that replace the content ofexecutions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of executions elements to set- Returns:
- A modified copy or
thisif not changed
-
withCreationDate
Copy the current immutable object by setting a present value for the optionalcreationDateattribute.- Parameters:
value- The value for creationDate- Returns:
- A modified copy or
thisif not changed
-
withCreationDate
Copy the current immutable object by setting an optional value for thecreationDateattribute. A shallow reference equality check on the inner value is used to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for creationDate- Returns:
- A modified copy or
thisif not changed
-
withScenario
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 or the
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 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
-
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 ofImmutableGwtTestCaseDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,title,description,repositorySource,tags,executions,creationDate,scenario,defaultDataset,author,updateDate,version. -
toString
Prints the immutable valueGwtTestCaseDtowith attribute values. -
copyOf
Creates an immutable copy of aGwtTestCaseDtovalue. 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 GwtTestCaseDto instance
-
builder
Creates a builder forImmutableGwtTestCaseDto.ImmutableGwtTestCaseDto.builder() .id(Optional<String>) // optionalid.title(String) // requiredtitle.description(Optional<String>) // optionaldescription.repositorySource(Optional<String>) // optionalrepositorySource.addTags|addAllTags(String) //tagselements .addExecutions|addAllExecutions(fr.enedis.chutney.execution.api.ExecutionSummaryDto) //executionselements .creationDate(Optional<java.time.Instant>) // optionalcreationDate.scenario(fr.enedis.chutney.scenario.api.raw.dto.GwtScenarioDto) // requiredscenario.defaultDataset(Optional<String>) // optionaldefaultDataset.author(String) // optionalauthor.updateDate(java.time.Instant) // optionalupdateDate.version(Integer) // optionalversion.build();- Returns:
- A new ImmutableGwtTestCaseDto builder
-