Package fr.enedis.chutney.jira.api
Class ImmutableJiraScenarioLinksDto
java.lang.Object
fr.enedis.chutney.jira.api.ImmutableJiraScenarioLinksDto
- All Implemented Interfaces:
JiraScenarioLinksDto
@Generated(from="JiraScenarioLinksDto",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableJiraScenarioLinksDto
extends Object
implements JiraScenarioLinksDto
Immutable implementation of
JiraScenarioLinksDto.
Use the builder to create immutable instances:
ImmutableJiraScenarioLinksDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableJiraScenarioLinksDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableJiraScenarioLinksDto.copyOf(JiraScenarioLinksDto instance) Creates an immutable copy of aJiraScenarioLinksDtovalue.booleanThis instance is equal to all instances ofImmutableJiraScenarioLinksDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:id,chutneyId,datasetLinks.id()toString()Prints the immutable valueJiraScenarioLinksDtowith attribute values.withChutneyId(String value) Copy the current immutable object by setting a value for thechutneyIdattribute.withDatasetLinks(Map<String, ? extends String> entries) Copy the current immutable object by replacing thedatasetLinksmap with the specified map.Copy the current immutable object by setting a value for theidattribute.
-
Method Details
-
id
- Specified by:
idin interfaceJiraScenarioLinksDto- Returns:
- The value of the
idattribute
-
chutneyId
- Specified by:
chutneyIdin interfaceJiraScenarioLinksDto- Returns:
- The value of the
chutneyIdattribute
-
datasetLinks
- Specified by:
datasetLinksin interfaceJiraScenarioLinksDto- Returns:
- The value of the
datasetLinksattribute
-
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 (can benull)- 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
-
withDatasetLinks
Copy the current immutable object by replacing thedatasetLinksmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to replace the datasetLinks map- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableJiraScenarioLinksDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,chutneyId,datasetLinks. -
toString
Prints the immutable valueJiraScenarioLinksDtowith attribute values. -
copyOf
Creates an immutable copy of aJiraScenarioLinksDtovalue. 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 JiraScenarioLinksDto instance
-
builder
Creates a builder forImmutableJiraScenarioLinksDto.ImmutableJiraScenarioLinksDto.builder() .id(String | null) // nullableid.chutneyId(String) // requiredchutneyId.putDatasetLinks|putAllDatasetLinks(String => String) //datasetLinksmappings .build();- Returns:
- A new ImmutableJiraScenarioLinksDto builder
-