Class ImmutableLabelTemplateBean.Builder

java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.ImmutableLabelTemplateBean.Builder
Enclosing class:
ImmutableLabelTemplateBean

@NotThreadSafe public static final class ImmutableLabelTemplateBean.Builder extends Object
Builds instances of type ImmutableLabelTemplateBean. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder from(LabelTemplateBean instance)
      Fill a builder with attribute values from the provided LabelTemplateBean instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setId

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setId(@Nullable Integer id)
      Initializes the value for the id attribute.
      Parameters:
      id - The value for id (can be null)
      Returns:
      this builder for use in a chained invocation
    • setDescription

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setDescription(@Nullable String description)
      Initializes the value for the description attribute.
      Parameters:
      description - The value for description (can be null)
      Returns:
      this builder for use in a chained invocation
    • setName

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setName(String name)
      Initializes the value for the name attribute.
      Parameters:
      name - The value for name
      Returns:
      this builder for use in a chained invocation
    • setTemplate

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setTemplate(String template)
      Initializes the value for the template attribute.
      Parameters:
      template - The value for template
      Returns:
      this builder for use in a chained invocation
    • setObjectSchemaId

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setObjectSchemaId(@Nullable Integer objectSchemaId)
      Initializes the value for the objectSchemaId attribute.
      Parameters:
      objectSchemaId - The value for objectSchemaId (can be null)
      Returns:
      this builder for use in a chained invocation
    • setHeight

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setHeight(Integer height)
      Initializes the value for the height attribute.
      Parameters:
      height - The value for height
      Returns:
      this builder for use in a chained invocation
    • setWidth

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setWidth(Integer width)
      Initializes the value for the width attribute.
      Parameters:
      width - The value for width
      Returns:
      this builder for use in a chained invocation
    • setDynamicHeight

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setDynamicHeight(Boolean dynamicHeight)
      Initializes the value for the dynamicHeight attribute.
      Parameters:
      dynamicHeight - The value for dynamicHeight
      Returns:
      this builder for use in a chained invocation
    • setCreated

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setCreated(Date created)
      Initializes the value for the created attribute.
      Parameters:
      created - The value for created
      Returns:
      this builder for use in a chained invocation
    • setUpdated

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setUpdated(Date updated)
      Initializes the value for the updated attribute.
      Parameters:
      updated - The value for updated
      Returns:
      this builder for use in a chained invocation
    • setIncludeBorder

      @CanIgnoreReturnValue public final ImmutableLabelTemplateBean.Builder setIncludeBorder(Boolean includeBorder)
      Initializes the value for the includeBorder attribute.
      Parameters:
      includeBorder - The value for includeBorder
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of LabelTemplateBean
      Throws:
      IllegalStateException - if any required attributes are missing