Class ImmutableGitConfig

java.lang.Object
io.resys.hdes.client.spi.ImmutableGitConfig
All Implemented Interfaces:
GitConfig

@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableGitConfig
extends Object
implements GitConfig
Immutable implementation of GitConfig.

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

  • Method Details

    • getInit

      public GitConfig.GitInit getInit()
      Specified by:
      getInit in interface GitConfig
      Returns:
      The value of the init attribute
    • getLocation

      public StoreEntityLocation getLocation()
      Specified by:
      getLocation in interface GitConfig
      Returns:
      The value of the location attribute
    • getSerializer

      public GitConfig.GitSerializer getSerializer()
      Specified by:
      getSerializer in interface GitConfig
      Returns:
      The value of the serializer attribute
    • getCreds

      public HdesStore.HdesCredsSupplier getCreds()
      Specified by:
      getCreds in interface GitConfig
      Returns:
      The value of the creds attribute
    • getCacheManager

      public org.ehcache.CacheManager getCacheManager()
      Specified by:
      getCacheManager in interface GitConfig
      Returns:
      The value of the cacheManager attribute
    • getCacheName

      public String getCacheName()
      Specified by:
      getCacheName in interface GitConfig
      Returns:
      The value of the cacheName attribute
    • getCacheHeap

      public Integer getCacheHeap()
      Specified by:
      getCacheHeap in interface GitConfig
      Returns:
      The value of the cacheHeap attribute
    • getAssetsPath

      public String getAssetsPath()
      Specified by:
      getAssetsPath in interface GitConfig
      Returns:
      The value of the assetsPath attribute
    • getParentPath

      public Path getParentPath()
      Specified by:
      getParentPath in interface GitConfig
      Returns:
      The value of the parentPath attribute
    • getAbsolutePath

      public String getAbsolutePath()
      Specified by:
      getAbsolutePath in interface GitConfig
      Returns:
      The value of the absolutePath attribute
    • getAbsoluteAssetsPath

      public String getAbsoluteAssetsPath()
      Specified by:
      getAbsoluteAssetsPath in interface GitConfig
      Returns:
      The value of the absoluteAssetsPath attribute
    • getCallback

      public org.eclipse.jgit.api.TransportConfigCallback getCallback()
      Specified by:
      getCallback in interface GitConfig
      Returns:
      The value of the callback attribute
    • getClient

      public org.eclipse.jgit.api.Git getClient()
      Specified by:
      getClient in interface GitConfig
      Returns:
      The value of the client attribute
    • withInit

      public final ImmutableGitConfig withInit​(GitConfig.GitInit value)
      Copy the current immutable object by setting a value for the init attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for init
      Returns:
      A modified copy of the this object
    • withLocation

      public final ImmutableGitConfig withLocation​(StoreEntityLocation value)
      Copy the current immutable object by setting a value for the location attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for location
      Returns:
      A modified copy of the this object
    • withSerializer

      public final ImmutableGitConfig withSerializer​(GitConfig.GitSerializer value)
      Copy the current immutable object by setting a value for the serializer attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for serializer
      Returns:
      A modified copy of the this object
    • withCreds

      public final ImmutableGitConfig withCreds​(HdesStore.HdesCredsSupplier value)
      Copy the current immutable object by setting a value for the creds attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for creds
      Returns:
      A modified copy of the this object
    • withCacheManager

      public final ImmutableGitConfig withCacheManager​(org.ehcache.CacheManager value)
      Copy the current immutable object by setting a value for the cacheManager attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for cacheManager
      Returns:
      A modified copy of the this object
    • withCacheName

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

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

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

      public final ImmutableGitConfig withParentPath​(Path value)
      Copy the current immutable object by setting a value for the parentPath attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for parentPath
      Returns:
      A modified copy of the this object
    • withAbsolutePath

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

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

      public final ImmutableGitConfig withCallback​(org.eclipse.jgit.api.TransportConfigCallback value)
      Copy the current immutable object by setting a value for the callback attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for callback
      Returns:
      A modified copy of the this object
    • withClient

      public final ImmutableGitConfig withClient​(org.eclipse.jgit.api.Git value)
      Copy the current immutable object by setting a value for the client attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for client
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals​(@Nullable Object another)
      This instance is equal to all instances of ImmutableGitConfig 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: init, location, serializer, creds, cacheManager, cacheName, cacheHeap, assetsPath, parentPath, absolutePath, absoluteAssetsPath, callback, client.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      public static ImmutableGitConfig.Builder builder()
      Creates a builder for ImmutableGitConfig.
       ImmutableGitConfig.builder()
          .init(io.resys.hdes.client.spi.GitConfig.GitInit) // required init
          .location(io.resys.hdes.client.spi.staticresources.StoreEntityLocation) // required location
          .serializer(io.resys.hdes.client.spi.GitConfig.GitSerializer) // required serializer
          .creds(io.resys.hdes.client.api.HdesStore.HdesCredsSupplier) // required creds
          .cacheManager(org.ehcache.CacheManager) // required cacheManager
          .cacheName(String) // required cacheName
          .cacheHeap(Integer) // required cacheHeap
          .assetsPath(String) // required assetsPath
          .parentPath(java.nio.file.Path) // required parentPath
          .absolutePath(String) // required absolutePath
          .absoluteAssetsPath(String) // required absoluteAssetsPath
          .callback(org.eclipse.jgit.api.TransportConfigCallback) // required callback
          .client(org.eclipse.jgit.api.Git) // required client
          .build();
       
      Returns:
      A new ImmutableGitConfig builder