Class ImmutableRelease

    • Method Detail

      • withParentCommit

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

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

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

        public final ImmutableRelease withCreated​(LocalDateTime value)
        Copy the current immutable object by setting a value for the created attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for created
        Returns:
        A modified copy of the this object
      • withLocales

        public final ImmutableRelease withLocales​(StencilClient.LocaleReleaseItem... elements)
        Copy the current immutable object with elements that replace the content of locales.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withLocales

        public final ImmutableRelease withLocales​(Iterable<? extends StencilClient.LocaleReleaseItem> elements)
        Copy the current immutable object with elements that replace the content of locales. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of locales elements to set
        Returns:
        A modified copy of this object
      • withArticles

        public final ImmutableRelease withArticles​(Iterable<? extends StencilClient.ArticleReleaseItem> elements)
        Copy the current immutable object with elements that replace the content of articles. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of articles elements to set
        Returns:
        A modified copy of this object
      • withLinks

        public final ImmutableRelease withLinks​(StencilClient.LinkReleaseItem... elements)
        Copy the current immutable object with elements that replace the content of links.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withLinks

        public final ImmutableRelease withLinks​(Iterable<? extends StencilClient.LinkReleaseItem> elements)
        Copy the current immutable object with elements that replace the content of links. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of links elements to set
        Returns:
        A modified copy of this object
      • withWorkflows

        public final ImmutableRelease withWorkflows​(Iterable<? extends StencilClient.WorkflowReleaseItem> elements)
        Copy the current immutable object with elements that replace the content of workflows. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of workflows elements to set
        Returns:
        A modified copy of this object
      • withPages

        public final ImmutableRelease withPages​(StencilClient.PageReleaseItem... elements)
        Copy the current immutable object with elements that replace the content of pages.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withPages

        public final ImmutableRelease withPages​(Iterable<? extends StencilClient.PageReleaseItem> elements)
        Copy the current immutable object with elements that replace the content of pages. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of pages elements to set
        Returns:
        A modified copy of this object
      • withTemplates

        public final ImmutableRelease withTemplates​(Iterable<? extends StencilClient.TemplateReleaseItem> elements)
        Copy the current immutable object with elements that replace the content of templates. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of templates elements to set
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableRelease 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: parentCommit, name, note, created, locales, articles, links, workflows, pages, templates.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableRelease copyOf​(StencilClient.Release instance)
        Creates an immutable copy of a StencilClient.Release 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 Release instance
      • builder

        public static ImmutableRelease.Builder builder()
        Creates a builder for ImmutableRelease.
         ImmutableRelease.builder()
            .parentCommit(String) // required parentCommit
            .name(String) // required name
            .note(String) // required note
            .created(java.time.LocalDateTime) // required created
            .addLocales|addAllLocales(io.thestencil.client.api.StencilClient.LocaleReleaseItem) // locales elements
            .addArticles|addAllArticles(io.thestencil.client.api.StencilClient.ArticleReleaseItem) // articles elements
            .addLinks|addAllLinks(io.thestencil.client.api.StencilClient.LinkReleaseItem) // links elements
            .addWorkflows|addAllWorkflows(io.thestencil.client.api.StencilClient.WorkflowReleaseItem) // workflows elements
            .addPages|addAllPages(io.thestencil.client.api.StencilClient.PageReleaseItem) // pages elements
            .addTemplates|addAllTemplates(io.thestencil.client.api.StencilClient.TemplateReleaseItem) // templates elements
            .build();
         
        Returns:
        A new ImmutableRelease builder