Package com.chutneytesting.jira.api
Class ImmutableJiraDto
- java.lang.Object
-
- com.chutneytesting.jira.api.ImmutableJiraDto
-
- All Implemented Interfaces:
JiraDto
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableJiraDto extends Object implements JiraDto
Immutable implementation ofJiraDto.Use the builder to create immutable instances:
ImmutableJiraDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableJiraDto.BuilderBuilds instances of typeImmutableJiraDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableJiraDto.Builderbuilder()Creates a builder forImmutableJiraDto.StringchutneyId()static ImmutableJiraDtocopyOf(JiraDto instance)Creates an immutable copy of aJiraDtovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableJiraDtothat have equal attribute values.Optional<String>executionStatus()inthashCode()Computes a hash code from attributes:id,chutneyId,executionStatus.Stringid()StringtoString()Prints the immutable valueJiraDtowith attribute values.ImmutableJiraDtowithChutneyId(String value)Copy the current immutable object by setting a value for thechutneyIdattribute.ImmutableJiraDtowithExecutionStatus(String value)Copy the current immutable object by setting a present value for the optionalexecutionStatusattribute.ImmutableJiraDtowithExecutionStatus(Optional<String> optional)Copy the current immutable object by setting an optional value for theexecutionStatusattribute.ImmutableJiraDtowithId(String value)Copy the current immutable object by setting a value for theidattribute.
-
-
-
Method Detail
-
chutneyId
public String chutneyId()
-
executionStatus
public Optional<String> executionStatus()
- Specified by:
executionStatusin interfaceJiraDto- Returns:
- The value of the
executionStatusattribute
-
withId
public final ImmutableJiraDto withId(String value)
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 of the
thisobject
-
withChutneyId
public final ImmutableJiraDto withChutneyId(String value)
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 of the
thisobject
-
withExecutionStatus
public final ImmutableJiraDto withExecutionStatus(String value)
Copy the current immutable object by setting a present value for the optionalexecutionStatusattribute.- Parameters:
value- The value for executionStatus- Returns:
- A modified copy of
thisobject
-
withExecutionStatus
public final ImmutableJiraDto withExecutionStatus(Optional<String> optional)
Copy the current immutable object by setting an optional value for theexecutionStatusattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for executionStatus- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueJiraDtowith attribute values.
-
copyOf
public static ImmutableJiraDto copyOf(JiraDto instance)
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
public static ImmutableJiraDto.Builder builder()
Creates a builder forImmutableJiraDto.ImmutableJiraDto.builder() .id(String) // requiredid.chutneyId(String) // requiredchutneyId.executionStatus(String) // optionalexecutionStatus.build();- Returns:
- A new ImmutableJiraDto builder
-
-