Package fr.enedis.chutney.jira.api
Class ImmutableJiraTestExecutionDto
java.lang.Object
fr.enedis.chutney.jira.api.ImmutableJiraTestExecutionDto
- All Implemented Interfaces:
JiraTestExecutionDto
@Generated(from="JiraTestExecutionDto",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableJiraTestExecutionDto
extends Object
implements JiraTestExecutionDto
Immutable implementation of
JiraTestExecutionDto.
Use the builder to create immutable instances:
ImmutableJiraTestExecutionDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableJiraTestExecutionDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableJiraTestExecutionDto.copyOf(JiraTestExecutionDto instance) Creates an immutable copy of aJiraTestExecutionDtovalue.booleanThis instance is equal to all instances ofImmutableJiraTestExecutionDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:id,jiraScenarios.id()toString()Prints the immutable valueJiraTestExecutionDtowith attribute values.Copy the current immutable object by setting a value for theidattribute.withJiraScenarios(JiraDto... elements) Copy the current immutable object with elements that replace the content ofjiraScenarios.withJiraScenarios(Iterable<? extends JiraDto> elements) Copy the current immutable object with elements that replace the content ofjiraScenarios.
-
Method Details
-
id
- Specified by:
idin interfaceJiraTestExecutionDto- Returns:
- The value of the
idattribute
-
jiraScenarios
- Specified by:
jiraScenariosin interfaceJiraTestExecutionDto- Returns:
- The value of the
jiraScenariosattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy or the
thisobject
-
withJiraScenarios
Copy the current immutable object with elements that replace the content ofjiraScenarios.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withJiraScenarios
Copy the current immutable object with elements that replace the content ofjiraScenarios. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of jiraScenarios elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableJiraTestExecutionDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,jiraScenarios. -
toString
Prints the immutable valueJiraTestExecutionDtowith attribute values. -
copyOf
Creates an immutable copy of aJiraTestExecutionDtovalue. 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 JiraTestExecutionDto instance
-
builder
Creates a builder forImmutableJiraTestExecutionDto.ImmutableJiraTestExecutionDto.builder() .id(String) // requiredid.addJiraScenarios|addAllJiraScenarios(fr.enedis.chutney.jira.api.JiraDto) //jiraScenarioselements .build();- Returns:
- A new ImmutableJiraTestExecutionDto builder
-