Class ImmutableGlobalIconTheme.Builder

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

@NotThreadSafe public static final class ImmutableGlobalIconTheme.Builder extends Object
Builds instances of type ImmutableGlobalIconTheme. 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 ImmutableGlobalIconTheme.Builder from(IconTheme instance)
      Fill a builder with attribute values from the provided com.riadalabs.jira.plugins.insight.services.model.icontheme.IconTheme instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      @CanIgnoreReturnValue public final ImmutableGlobalIconTheme.Builder from(GlobalIconTheme instance)
      Fill a builder with attribute values from the provided com.riadalabs.jira.plugins.insight.services.model.icontheme.GlobalIconTheme instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setColor1

      @CanIgnoreReturnValue public final ImmutableGlobalIconTheme.Builder setColor1(String color1)
      Initializes the value for the color1 attribute.
      Parameters:
      color1 - The value for color1
      Returns:
      this builder for use in a chained invocation
    • setColor2

      @CanIgnoreReturnValue public final ImmutableGlobalIconTheme.Builder setColor2(String color2)
      Initializes the value for the color2 attribute.
      Parameters:
      color2 - The value for color2
      Returns:
      this builder for use in a chained invocation
    • setColor3

      @CanIgnoreReturnValue public final ImmutableGlobalIconTheme.Builder setColor3(String color3)
      Initializes the value for the color3 attribute.
      Parameters:
      color3 - The value for color3
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableGlobalIconTheme build()
      Returns:
      An immutable instance of GlobalIconTheme
      Throws:
      IllegalStateException - if any required attributes are missing