Class ImmutableGitConfig.Builder

java.lang.Object
io.resys.hdes.client.spi.ImmutableGitConfig.Builder
Enclosing class:
ImmutableGitConfig

@NotThreadSafe
public static final class ImmutableGitConfig.Builder
extends Object
Builds instances of type ImmutableGitConfig. 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 ImmutableGitConfig.Builder from​(GitConfig instance)
      Fill a builder with attribute values from the provided GitConfig 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
    • init

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder init​(GitConfig.GitInit init)
      Initializes the value for the init attribute.
      Parameters:
      init - The value for init
      Returns:
      this builder for use in a chained invocation
    • location

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder location​(StoreEntityLocation location)
      Initializes the value for the location attribute.
      Parameters:
      location - The value for location
      Returns:
      this builder for use in a chained invocation
    • serializer

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder serializer​(GitConfig.GitSerializer serializer)
      Initializes the value for the serializer attribute.
      Parameters:
      serializer - The value for serializer
      Returns:
      this builder for use in a chained invocation
    • creds

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder creds​(HdesStore.HdesCredsSupplier creds)
      Initializes the value for the creds attribute.
      Parameters:
      creds - The value for creds
      Returns:
      this builder for use in a chained invocation
    • cacheManager

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder cacheManager​(org.ehcache.CacheManager cacheManager)
      Initializes the value for the cacheManager attribute.
      Parameters:
      cacheManager - The value for cacheManager
      Returns:
      this builder for use in a chained invocation
    • cacheName

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder cacheName​(String cacheName)
      Initializes the value for the cacheName attribute.
      Parameters:
      cacheName - The value for cacheName
      Returns:
      this builder for use in a chained invocation
    • cacheHeap

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder cacheHeap​(Integer cacheHeap)
      Initializes the value for the cacheHeap attribute.
      Parameters:
      cacheHeap - The value for cacheHeap
      Returns:
      this builder for use in a chained invocation
    • assetsPath

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder assetsPath​(String assetsPath)
      Initializes the value for the assetsPath attribute.
      Parameters:
      assetsPath - The value for assetsPath
      Returns:
      this builder for use in a chained invocation
    • parentPath

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder parentPath​(Path parentPath)
      Initializes the value for the parentPath attribute.
      Parameters:
      parentPath - The value for parentPath
      Returns:
      this builder for use in a chained invocation
    • absolutePath

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder absolutePath​(String absolutePath)
      Initializes the value for the absolutePath attribute.
      Parameters:
      absolutePath - The value for absolutePath
      Returns:
      this builder for use in a chained invocation
    • absoluteAssetsPath

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder absoluteAssetsPath​(String absoluteAssetsPath)
      Initializes the value for the absoluteAssetsPath attribute.
      Parameters:
      absoluteAssetsPath - The value for absoluteAssetsPath
      Returns:
      this builder for use in a chained invocation
    • callback

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder callback​(org.eclipse.jgit.api.TransportConfigCallback callback)
      Initializes the value for the callback attribute.
      Parameters:
      callback - The value for callback
      Returns:
      this builder for use in a chained invocation
    • client

      @CanIgnoreReturnValue public final ImmutableGitConfig.Builder client​(org.eclipse.jgit.api.Git client)
      Initializes the value for the client attribute.
      Parameters:
      client - The value for client
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableGitConfig build()
      Builds a new ImmutableGitConfig.
      Returns:
      An immutable instance of GitConfig
      Throws:
      IllegalStateException - if any required attributes are missing