Class ImmutableStencilConfig.Builder

  • Enclosing class:
    ImmutableStencilConfig

    @NotThreadSafe
    public static final class ImmutableStencilConfig.Builder
    extends Object
    Builds instances of type ImmutableStencilConfig. 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 Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableStencilConfig.Builder from​(StencilConfig instance)
        Fill a builder with attribute values from the provided StencilConfig 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
      • client

        @CanIgnoreReturnValue
        public final ImmutableStencilConfig.Builder client​(io.resys.thena.docdb.api.DocDB client)
        Initializes the value for the client attribute.
        Parameters:
        client - The value for client
        Returns:
        this builder for use in a chained invocation
      • repoName

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

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

        @CanIgnoreReturnValue
        public final ImmutableStencilConfig.Builder objectMapper​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Initializes the value for the objectMapper attribute.
        Parameters:
        objectMapper - The value for objectMapper
        Returns:
        this builder for use in a chained invocation