Class ImmutableLabelTemplateBean

java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.LabelTemplateBean
com.riadalabs.jira.plugins.insight.services.model.ImmutableLabelTemplateBean
All Implemented Interfaces:
Serializable

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableLabelTemplateBean extends LabelTemplateBean
Immutable implementation of LabelTemplateBean.

Use the builder to create immutable instances: ImmutableLabelTemplateBean.builder().

See Also:
  • Method Details

    • getId

      @Nullable public Integer getId()
      Specified by:
      getId in class LabelTemplateBean
      Returns:
      The value of the id attribute
    • getDescription

      @Nullable public String getDescription()
      Specified by:
      getDescription in class LabelTemplateBean
      Returns:
      The value of the description attribute
    • getName

      public String getName()
      Specified by:
      getName in class LabelTemplateBean
      Returns:
      The value of the name attribute
    • getTemplate

      public String getTemplate()
      Specified by:
      getTemplate in class LabelTemplateBean
      Returns:
      The value of the template attribute
    • getObjectSchemaId

      @Nullable public Integer getObjectSchemaId()
      Specified by:
      getObjectSchemaId in class LabelTemplateBean
      Returns:
      The value of the objectSchemaId attribute
    • getHeight

      public Integer getHeight()
      Specified by:
      getHeight in class LabelTemplateBean
      Returns:
      The value of the height attribute
    • getWidth

      public Integer getWidth()
      Specified by:
      getWidth in class LabelTemplateBean
      Returns:
      The value of the width attribute
    • isDynamicHeight

      public Boolean isDynamicHeight()
      Specified by:
      isDynamicHeight in class LabelTemplateBean
      Returns:
      The value of the dynamicHeight attribute
    • getCreated

      public Date getCreated()
      Specified by:
      getCreated in class LabelTemplateBean
      Returns:
      The value of the created attribute
    • getUpdated

      public Date getUpdated()
      Specified by:
      getUpdated in class LabelTemplateBean
      Returns:
      The value of the updated attribute
    • includeBorder

      public Boolean includeBorder()
      Specified by:
      includeBorder in class LabelTemplateBean
      Returns:
      The value of the includeBorder attribute
    • withId

      public final ImmutableLabelTemplateBean withId(@Nullable Integer 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 of the this object
    • withDescription

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

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

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

      public final ImmutableLabelTemplateBean withObjectSchemaId(@Nullable Integer value)
      Copy the current immutable object by setting a value for the objectSchemaId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for objectSchemaId (can be null)
      Returns:
      A modified copy of the this object
    • withHeight

      public final ImmutableLabelTemplateBean withHeight(Integer value)
      Copy the current immutable object by setting a value for the height attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for height
      Returns:
      A modified copy of the this object
    • withWidth

      public final ImmutableLabelTemplateBean withWidth(Integer value)
      Copy the current immutable object by setting a value for the width attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for width
      Returns:
      A modified copy of the this object
    • withDynamicHeight

      public final ImmutableLabelTemplateBean withDynamicHeight(Boolean value)
      Copy the current immutable object by setting a value for the dynamicHeight attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for dynamicHeight
      Returns:
      A modified copy of the this object
    • withCreated

      public final ImmutableLabelTemplateBean withCreated(Date value)
      Copy the current immutable object by setting a value for the created attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for created
      Returns:
      A modified copy of the this object
    • withUpdated

      public final ImmutableLabelTemplateBean withUpdated(Date value)
      Copy the current immutable object by setting a value for the updated attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for updated
      Returns:
      A modified copy of the this object
    • withIncludeBorder

      public final ImmutableLabelTemplateBean withIncludeBorder(Boolean value)
      Copy the current immutable object by setting a value for the includeBorder attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for includeBorder
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableLabelTemplateBean 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, description, name, template, objectSchemaId, height, width, dynamicHeight, created, updated, includeBorder.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableLabelTemplateBean copyOf(LabelTemplateBean instance)
      Creates an immutable copy of a LabelTemplateBean 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 LabelTemplateBean instance
    • builder

      public static ImmutableLabelTemplateBean.Builder builder()
      Creates a builder for ImmutableLabelTemplateBean.
       ImmutableLabelTemplateBean.builder()
          .setId(Integer | null) // nullable id
          .setDescription(String | null) // nullable description
          .setName(String) // required name
          .setTemplate(String) // required template
          .setObjectSchemaId(Integer | null) // nullable objectSchemaId
          .setHeight(Integer) // required height
          .setWidth(Integer) // required width
          .setDynamicHeight(Boolean) // required dynamicHeight
          .setCreated(Date) // required created
          .setUpdated(Date) // required updated
          .setIncludeBorder(Boolean) // required includeBorder
          .build();
       
      Returns:
      A new ImmutableLabelTemplateBean builder