Package fr.enedis.chutney.jira.api
Class ImmutableJiraDto
java.lang.Object
fr.enedis.chutney.jira.api.ImmutableJiraDto
- All Implemented Interfaces:
JiraDto
@Generated(from="JiraDto",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableJiraDto
extends Object
implements JiraDto
Immutable implementation of
JiraDto.
Use the builder to create immutable instances:
ImmutableJiraDto.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableJiraDto.Builderbuilder()Creates a builder forImmutableJiraDto.static ImmutableJiraDtoCreates an immutable copy of aJiraDtovalue.booleanThis instance is equal to all instances ofImmutableJiraDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:id,chutneyId,executionStatus.id()toString()Prints the immutable valueJiraDtowith attribute values.final ImmutableJiraDtowithChutneyId(String value) Copy the current immutable object by setting a value for thechutneyIdattribute.final ImmutableJiraDtowithExecutionStatus(String value) Copy the current immutable object by setting a present value for the optionalexecutionStatusattribute.final ImmutableJiraDtowithExecutionStatus(Optional<String> optional) Copy the current immutable object by setting an optional value for theexecutionStatusattribute.final ImmutableJiraDtoCopy the current immutable object by setting a value for theidattribute.
-
Method Details
-
id
-
chutneyId
-
executionStatus
- Specified by:
executionStatusin interfaceJiraDto- Returns:
- The value of the
executionStatusattribute
-
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
-
withChutneyId
Copy the current immutable object by setting a value for thechutneyIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for chutneyId- Returns:
- A modified copy or the
thisobject
-
withExecutionStatus
Copy the current immutable object by setting a present value for the optionalexecutionStatusattribute.- Parameters:
value- The value for executionStatus- Returns:
- A modified copy or
thisif not changed
-
withExecutionStatus
Copy the current immutable object by setting an optional value for theexecutionStatusattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for executionStatus- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableJiraDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,chutneyId,executionStatus. -
toString
Prints the immutable valueJiraDtowith attribute values. -
copyOf
Creates an immutable copy of aJiraDtovalue. 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 JiraDto instance
-
builder
Creates a builder forImmutableJiraDto.ImmutableJiraDto.builder() .id(String) // requiredid.chutneyId(String) // requiredchutneyId.executionStatus(Optional<String>) // optionalexecutionStatus.build();- Returns:
- A new ImmutableJiraDto builder
-