Class ImmutableDialobStoreConfig

  • All Implemented Interfaces:
    DialobStoreConfig

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

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

    • Method Detail

      • getClient

        public io.resys.thena.docdb.api.DocDB getClient()
        Specified by:
        getClient in interface DialobStoreConfig
        Returns:
        The value of the client attribute
      • withClient

        public final ImmutableDialobStoreConfig withClient​(io.resys.thena.docdb.api.DocDB 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
      • withRepoName

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

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

        public final ImmutableDialobStoreConfig withAuthorProvider​(DialobStoreConfig.AuthorProvider value)
        Copy the current immutable object by setting a value for the authorProvider attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for authorProvider
        Returns:
        A modified copy of the this object
      • withGidProvider

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

        public final ImmutableDialobStoreConfig withSerializer​(DialobStoreConfig.Serializer 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
      • withDeserializer

        public final ImmutableDialobStoreConfig withDeserializer​(DialobStoreConfig.Deserializer value)
        Copy the current immutable object by setting a value for the deserializer attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for deserializer
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableDialobStoreConfig 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: client, repoName, headName, authorProvider, gidProvider, serializer, deserializer.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableDialobStoreConfig.Builder builder()
        Creates a builder for ImmutableDialobStoreConfig.
         ImmutableDialobStoreConfig.builder()
            .client(io.resys.thena.docdb.api.DocDB) // required client
            .repoName(String) // required repoName
            .headName(String) // required headName
            .authorProvider(io.dialob.client.spi.store.DialobStoreConfig.AuthorProvider) // required authorProvider
            .gidProvider(io.dialob.client.spi.store.DialobStoreConfig.GidProvider) // required gidProvider
            .serializer(io.dialob.client.spi.store.DialobStoreConfig.Serializer) // required serializer
            .deserializer(io.dialob.client.spi.store.DialobStoreConfig.Deserializer) // required deserializer
            .build();
         
        Returns:
        A new ImmutableDialobStoreConfig builder