Class ImmutableGlobalConfiguration.Builder

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

@NotThreadSafe public static final class ImmutableGlobalConfiguration.Builder extends Object
Builds instances of type ImmutableGlobalConfiguration. 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 ImmutableGlobalConfiguration.Builder from(GlobalConfiguration instance)
      Fill a builder with attribute values from the provided GlobalConfiguration instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setNumberGroupingSeparator

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setNumberGroupingSeparator(String numberGroupingSeparator)
      Initializes the value for the numberGroupingSeparator attribute.

      If not set, this attribute will have a default value as returned by the initializer of numberGroupingSeparator.

      Parameters:
      numberGroupingSeparator - The value for numberGroupingSeparator
      Returns:
      this builder for use in a chained invocation
    • setNumberDecimalSeparator

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setNumberDecimalSeparator(String numberDecimalSeparator)
      Initializes the value for the numberDecimalSeparator attribute.

      If not set, this attribute will have a default value as returned by the initializer of numberDecimalSeparator.

      Parameters:
      numberDecimalSeparator - The value for numberDecimalSeparator
      Returns:
      this builder for use in a chained invocation
    • setDatePickerFormat

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setDatePickerFormat(String datePickerFormat)
      Initializes the value for the datePickerFormat attribute.
      Parameters:
      datePickerFormat - The value for datePickerFormat
      Returns:
      this builder for use in a chained invocation
    • setDateTimePickerFormat

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setDateTimePickerFormat(String dateTimePickerFormat)
      Initializes the value for the dateTimePickerFormat attribute.
      Parameters:
      dateTimePickerFormat - The value for dateTimePickerFormat
      Returns:
      this builder for use in a chained invocation
    • setInsightVersion

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightVersion(String insightVersion)
      Initializes the value for the insightVersion attribute.
      Parameters:
      insightVersion - The value for insightVersion
      Returns:
      this builder for use in a chained invocation
    • setLastSeenVersion

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setLastSeenVersion(@Nullable String lastSeenVersion)
      Initializes the value for the lastSeenVersion attribute.
      Parameters:
      lastSeenVersion - The value for lastSeenVersion (can be null)
      Returns:
      this builder for use in a chained invocation
    • setUseISO8601

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setUseISO8601(Boolean useISO8601)
      Initializes the value for the useISO8601 attribute.
      Parameters:
      useISO8601 - The value for useISO8601
      Returns:
      this builder for use in a chained invocation
    • setUserKey

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setUserKey(String userKey)
      Initializes the value for the userKey attribute.
      Parameters:
      userKey - The value for userKey
      Returns:
      this builder for use in a chained invocation
    • setAttachmentsConfig

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setAttachmentsConfig(AttachmentsConfiguration attachmentsConfig)
      Initializes the value for the attachmentsConfig attribute.
      Parameters:
      attachmentsConfig - The value for attachmentsConfig
      Returns:
      this builder for use in a chained invocation
    • setInsightDeveloper

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightDeveloper(@Nullable Boolean insightDeveloper)
      Initializes the value for the insightDeveloper attribute.
      Parameters:
      insightDeveloper - The value for insightDeveloper (can be null)
      Returns:
      this builder for use in a chained invocation
    • setInsightDeveloperForObjectType

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightDeveloperForObjectType(@Nullable Boolean insightDeveloperForObjectType)
      Initializes the value for the insightDeveloperForObjectType attribute.
      Parameters:
      insightDeveloperForObjectType - The value for insightDeveloperForObjectType (can be null)
      Returns:
      this builder for use in a chained invocation
    • setInsightManager

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightManager(@Nullable Boolean insightManager)
      Initializes the value for the insightManager attribute.
      Parameters:
      insightManager - The value for insightManager (can be null)
      Returns:
      this builder for use in a chained invocation
    • setInsightManagerForObjectType

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightManagerForObjectType(@Nullable Boolean insightManagerForObjectType)
      Initializes the value for the insightManagerForObjectType attribute.
      Parameters:
      insightManagerForObjectType - The value for insightManagerForObjectType (can be null)
      Returns:
      this builder for use in a chained invocation
    • setInsightAdministrator

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightAdministrator(boolean insightAdministrator)
      Initializes the value for the insightAdministrator attribute.
      Parameters:
      insightAdministrator - The value for insightAdministrator
      Returns:
      this builder for use in a chained invocation
    • setServiceDeskEnabled

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setServiceDeskEnabled(boolean serviceDeskEnabled)
      Initializes the value for the serviceDeskEnabled attribute.

      If not set, this attribute will have a default value as returned by the initializer of serviceDeskEnabled.

      Parameters:
      serviceDeskEnabled - The value for serviceDeskEnabled
      Returns:
      this builder for use in a chained invocation
    • setServiceDeskCustomerEnabled

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setServiceDeskCustomerEnabled(boolean serviceDeskCustomerEnabled)
      Initializes the value for the serviceDeskCustomerEnabled attribute.

      If not set, this attribute will have a default value as returned by the initializer of serviceDeskCustomerEnabled.

      Parameters:
      serviceDeskCustomerEnabled - The value for serviceDeskCustomerEnabled
      Returns:
      this builder for use in a chained invocation
    • setTempoTimeSheetEnabled

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setTempoTimeSheetEnabled(boolean tempoTimeSheetEnabled)
      Initializes the value for the tempoTimeSheetEnabled attribute.

      If not set, this attribute will have a default value as returned by the initializer of tempoTimeSheetEnabled.

      Parameters:
      tempoTimeSheetEnabled - The value for tempoTimeSheetEnabled
      Returns:
      this builder for use in a chained invocation
    • addIcons

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addIcons(IconBean element)
      Adds one element to icons list.
      Parameters:
      element - A icons element
      Returns:
      this builder for use in a chained invocation
    • addIcons

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addIcons(IconBean... elements)
      Adds elements to icons list.
      Parameters:
      elements - An array of icons elements
      Returns:
      this builder for use in a chained invocation
    • setIcons

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setIcons(Iterable<? extends IconBean> elements)
      Sets or replaces all elements for icons list.
      Parameters:
      elements - An iterable of icons elements
      Returns:
      this builder for use in a chained invocation
    • addAllIcons

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addAllIcons(Iterable<? extends IconBean> elements)
      Adds elements to icons list.
      Parameters:
      elements - An iterable of icons elements
      Returns:
      this builder for use in a chained invocation
    • addReferenceTypes

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addReferenceTypes(ReferenceTypeBean element)
      Adds one element to referenceTypes list.
      Parameters:
      element - A referenceTypes element
      Returns:
      this builder for use in a chained invocation
    • addReferenceTypes

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addReferenceTypes(ReferenceTypeBean... elements)
      Adds elements to referenceTypes list.
      Parameters:
      elements - An array of referenceTypes elements
      Returns:
      this builder for use in a chained invocation
    • setReferenceTypes

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setReferenceTypes(Iterable<? extends ReferenceTypeBean> elements)
      Sets or replaces all elements for referenceTypes list.
      Parameters:
      elements - An iterable of referenceTypes elements
      Returns:
      this builder for use in a chained invocation
    • addAllReferenceTypes

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addAllReferenceTypes(Iterable<? extends ReferenceTypeBean> elements)
      Adds elements to referenceTypes list.
      Parameters:
      elements - An iterable of referenceTypes elements
      Returns:
      this builder for use in a chained invocation
    • addStatusTypes

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addStatusTypes(StatusTypeBean element)
      Adds one element to statusTypes list.
      Parameters:
      element - A statusTypes element
      Returns:
      this builder for use in a chained invocation
    • addStatusTypes

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addStatusTypes(StatusTypeBean... elements)
      Adds elements to statusTypes list.
      Parameters:
      elements - An array of statusTypes elements
      Returns:
      this builder for use in a chained invocation
    • setStatusTypes

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setStatusTypes(Iterable<? extends StatusTypeBean> elements)
      Sets or replaces all elements for statusTypes list.
      Parameters:
      elements - An iterable of statusTypes elements
      Returns:
      this builder for use in a chained invocation
    • addAllStatusTypes

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addAllStatusTypes(Iterable<? extends StatusTypeBean> elements)
      Adds elements to statusTypes list.
      Parameters:
      elements - An iterable of statusTypes elements
      Returns:
      this builder for use in a chained invocation
    • setObjectSchema

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setObjectSchema(@Nullable ObjectSchemaBean objectSchema)
      Initializes the value for the objectSchema attribute.
      Parameters:
      objectSchema - The value for objectSchema (can be null)
      Returns:
      this builder for use in a chained invocation
    • setObjectCacheComplete

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setObjectCacheComplete(int objectCacheComplete)
      Initializes the value for the objectCacheComplete attribute.

      If not set, this attribute will have a default value as returned by the initializer of objectCacheComplete.

      Parameters:
      objectCacheComplete - The value for objectCacheComplete
      Returns:
      this builder for use in a chained invocation
    • setAllowedToDoReindex

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setAllowedToDoReindex(Boolean allowedToDoReindex)
      Initializes the value for the allowedToDoReindex attribute.

      If not set, this attribute will have a default value as returned by the initializer of allowedToDoReindex.

      Parameters:
      allowedToDoReindex - The value for allowedToDoReindex
      Returns:
      this builder for use in a chained invocation
    • setReindexRunning

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setReindexRunning(Boolean reindexRunning)
      Initializes the value for the reindexRunning attribute.

      If not set, this attribute will have a default value as returned by the initializer of reindexRunning.

      Parameters:
      reindexRunning - The value for reindexRunning
      Returns:
      this builder for use in a chained invocation
    • setLastReindexResult

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setLastReindexResult(@Nullable com.riadalabs.jira.plugins.insight.services.progress.result.ProgressResult lastReindexResult)
      Initializes the value for the lastReindexResult attribute.
      Parameters:
      lastReindexResult - The value for lastReindexResult (can be null)
      Returns:
      this builder for use in a chained invocation
    • setReindexRunningOnNode

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setReindexRunningOnNode(@Nullable String reindexRunningOnNode)
      Initializes the value for the reindexRunningOnNode attribute.
      Parameters:
      reindexRunningOnNode - The value for reindexRunningOnNode (can be null)
      Returns:
      this builder for use in a chained invocation
    • addInProgressProgressCategories

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addInProgressProgressCategories(com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory element)
      Adds one element to inProgressProgressCategories list.
      Parameters:
      element - A inProgressProgressCategories element
      Returns:
      this builder for use in a chained invocation
    • addInProgressProgressCategories

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addInProgressProgressCategories(com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory... elements)
      Adds elements to inProgressProgressCategories list.
      Parameters:
      elements - An array of inProgressProgressCategories elements
      Returns:
      this builder for use in a chained invocation
    • setInProgressProgressCategories

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInProgressProgressCategories(Iterable<? extends com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory> elements)
      Sets or replaces all elements for inProgressProgressCategories list.
      Parameters:
      elements - An iterable of inProgressProgressCategories elements
      Returns:
      this builder for use in a chained invocation
    • addAllInProgressProgressCategories

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addAllInProgressProgressCategories(Iterable<? extends com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory> elements)
      Adds elements to inProgressProgressCategories list.
      Parameters:
      elements - An iterable of inProgressProgressCategories elements
      Returns:
      this builder for use in a chained invocation
    • setClonePrefix

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setClonePrefix(String clonePrefix)
      Initializes the value for the clonePrefix attribute.
      Parameters:
      clonePrefix - The value for clonePrefix
      Returns:
      this builder for use in a chained invocation
    • setJiraHome

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setJiraHome(@Nullable String jiraHome)
      Initializes the value for the jiraHome attribute.
      Parameters:
      jiraHome - The value for jiraHome (can be null)
      Returns:
      this builder for use in a chained invocation
    • setFileSeparator

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setFileSeparator(String fileSeparator)
      Initializes the value for the fileSeparator attribute.
      Parameters:
      fileSeparator - The value for fileSeparator
      Returns:
      this builder for use in a chained invocation
    • setDateFormat

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setDateFormat(String dateFormat)
      Initializes the value for the dateFormat attribute.
      Parameters:
      dateFormat - The value for dateFormat
      Returns:
      this builder for use in a chained invocation
    • setDateTimeFormat

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setDateTimeFormat(String dateTimeFormat)
      Initializes the value for the dateTimeFormat attribute.
      Parameters:
      dateTimeFormat - The value for dateTimeFormat
      Returns:
      this builder for use in a chained invocation
    • setUserTimeZone

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setUserTimeZone(TimeZone userTimeZone)
      Initializes the value for the userTimeZone attribute.
      Parameters:
      userTimeZone - The value for userTimeZone
      Returns:
      this builder for use in a chained invocation
    • setDataCenter

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setDataCenter(Boolean dataCenter)
      Initializes the value for the dataCenter attribute.

      If not set, this attribute will have a default value as returned by the initializer of dataCenter.

      Parameters:
      dataCenter - The value for dataCenter
      Returns:
      this builder for use in a chained invocation
    • setCurrentNodeId

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setCurrentNodeId(@Nullable String currentNodeId)
      Initializes the value for the currentNodeId attribute.
      Parameters:
      currentNodeId - The value for currentNodeId (can be null)
      Returns:
      this builder for use in a chained invocation
    • setMouseTrigger

      @CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setMouseTrigger(String mouseTrigger)
      Initializes the value for the mouseTrigger attribute.
      Parameters:
      mouseTrigger - The value for mouseTrigger
      Returns:
      this builder for use in a chained invocation
    • setFilterWildcard

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

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