Class ImmutableStencilConfig

  • All Implemented Interfaces:
    StencilConfig

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

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

    • Method Detail

      • getClient

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

        public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
        Specified by:
        getObjectMapper in interface StencilConfig
        Returns:
        The value of the objectMapper attribute
      • withClient

        public final ImmutableStencilConfig 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 ImmutableStencilConfig 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 ImmutableStencilConfig 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 ImmutableStencilConfig withAuthorProvider​(StencilConfig.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
      • withObjectMapper

        public final ImmutableStencilConfig withObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper value)
        Copy the current immutable object by setting a value for the objectMapper attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for objectMapper
        Returns:
        A modified copy of the this object
      • withSerializer

        public final ImmutableStencilConfig withSerializer​(StencilConfig.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 ImmutableStencilConfig withDeserializer​(StencilConfig.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
      • withGidProvider

        public final ImmutableStencilConfig withGidProvider​(StencilConfig.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
      • equals

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

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

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

        public static ImmutableStencilConfig.Builder builder()
        Creates a builder for ImmutableStencilConfig.
         ImmutableStencilConfig.builder()
            .client(io.resys.thena.docdb.api.DocDB) // required client
            .repoName(String) // required repoName
            .headName(String) // required headName
            .authorProvider(io.thestencil.client.api.StencilConfig.AuthorProvider) // required authorProvider
            .objectMapper(com.fasterxml.jackson.databind.ObjectMapper) // required objectMapper
            .serializer(io.thestencil.client.api.StencilConfig.Serializer) // required serializer
            .deserializer(io.thestencil.client.api.StencilConfig.Deserializer) // required deserializer
            .gidProvider(io.thestencil.client.api.StencilConfig.GidProvider) // required gidProvider
            .build();
         
        Returns:
        A new ImmutableStencilConfig builder