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().

  • Method Details

    • id

      @Nullable public String id()
      Specified by:
      id in interface JiraScenarioLinksDto
      Returns:
      The value of the id attribute
    • chutneyId

      public String chutneyId()
      Specified by:
      chutneyId in interface JiraScenarioLinksDto
      Returns:
      The value of the chutneyId attribute
    • datasetLinks

      public Map<String,String> datasetLinks()
      Specified by:
      datasetLinks in interface JiraScenarioLinksDto
      Returns:
      The value of the datasetLinks attribute
    • withId

      public final ImmutableJiraScenarioLinksDto withId(@Nullable String value)
      Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for id (can be null)
      Returns:
      A modified copy or the this object
    • withChutneyId

      public final ImmutableJiraScenarioLinksDto withChutneyId(String value)
      Copy the current immutable object by setting a value for the chutneyId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for chutneyId
      Returns:
      A modified copy or the this object
    • withDatasetLinks

      public final ImmutableJiraScenarioLinksDto withDatasetLinks(Map<String,? extends String> entries)
      Copy the current immutable object by replacing the datasetLinks map 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 returning this.
      Parameters:
      entries - The entries to replace the datasetLinks map
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableJiraScenarioLinksDto that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: id, chutneyId, datasetLinks.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value JiraScenarioLinksDto with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableJiraScenarioLinksDto copyOf(JiraScenarioLinksDto instance)
      Creates an immutable copy of a JiraScenarioLinksDto value. 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

      public static ImmutableJiraScenarioLinksDto.Builder builder()
      Creates a builder for ImmutableJiraScenarioLinksDto.
       ImmutableJiraScenarioLinksDto.builder()
          .id(String | null) // nullable id
          .chutneyId(String) // required chutneyId
          .putDatasetLinks|putAllDatasetLinks(String => String) // datasetLinks mappings
          .build();
       
      Returns:
      A new ImmutableJiraScenarioLinksDto builder