Class ImmutableBatchSite

    • Method Detail

      • withLocales

        public final ImmutableBatchSite withLocales​(CreateBuilder.CreateLocale... 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 ImmutableBatchSite withLocales​(Iterable<? extends CreateBuilder.CreateLocale> 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
      • withPages

        public final ImmutableBatchSite withPages​(CreateBuilder.CreatePage... 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 ImmutableBatchSite withPages​(Iterable<? extends CreateBuilder.CreatePage> 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
      • withArticles

        public final ImmutableBatchSite withArticles​(CreateBuilder.CreateArticle... elements)
        Copy the current immutable object with elements that replace the content of articles.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withArticles

        public final ImmutableBatchSite withArticles​(Iterable<? extends CreateBuilder.CreateArticle> 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
      • withWorkflows

        public final ImmutableBatchSite withWorkflows​(CreateBuilder.CreateWorkflow... elements)
        Copy the current immutable object with elements that replace the content of workflows.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withWorkflows

        public final ImmutableBatchSite withWorkflows​(Iterable<? extends CreateBuilder.CreateWorkflow> 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
      • withLinks

        public final ImmutableBatchSite withLinks​(CreateBuilder.CreateLink... 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 ImmutableBatchSite withLinks​(Iterable<? extends CreateBuilder.CreateLink> 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
      • equals

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

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

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

        public static ImmutableBatchSite.Builder builder()
        Creates a builder for ImmutableBatchSite.
         ImmutableBatchSite.builder()
            .addLocales|addAllLocales(io.thestencil.client.api.CreateBuilder.CreateLocale) // locales elements
            .addPages|addAllPages(io.thestencil.client.api.CreateBuilder.CreatePage) // pages elements
            .addArticles|addAllArticles(io.thestencil.client.api.CreateBuilder.CreateArticle) // articles elements
            .addWorkflows|addAllWorkflows(io.thestencil.client.api.CreateBuilder.CreateWorkflow) // workflows elements
            .addLinks|addAllLinks(io.thestencil.client.api.CreateBuilder.CreateLink) // links elements
            .build();
         
        Returns:
        A new ImmutableBatchSite builder