Package io.thestencil.client.api
Class ImmutableBatchSite
- java.lang.Object
-
- io.thestencil.client.api.ImmutableBatchSite
-
- All Implemented Interfaces:
CreateBuilder.BatchSite,CreateBuilder.Command,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableBatchSite extends Object implements CreateBuilder.BatchSite
Immutable implementation ofCreateBuilder.BatchSite.Use the builder to create immutable instances:
ImmutableBatchSite.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableBatchSite.BuilderBuilds instances of typeImmutableBatchSite.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableBatchSite.Builderbuilder()Creates a builder forImmutableBatchSite.static ImmutableBatchSitecopyOf(CreateBuilder.BatchSite instance)Creates an immutable copy of aCreateBuilder.BatchSitevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableBatchSitethat have equal attribute values.com.google.common.collect.ImmutableList<CreateBuilder.CreateArticle>getArticles()com.google.common.collect.ImmutableList<CreateBuilder.CreateLink>getLinks()com.google.common.collect.ImmutableList<CreateBuilder.CreateLocale>getLocales()com.google.common.collect.ImmutableList<CreateBuilder.CreatePage>getPages()com.google.common.collect.ImmutableList<CreateBuilder.CreateWorkflow>getWorkflows()inthashCode()Computes a hash code from attributes:locales,pages,articles,workflows,links.StringtoString()Prints the immutable valueBatchSitewith attribute values.ImmutableBatchSitewithArticles(CreateBuilder.CreateArticle... elements)Copy the current immutable object with elements that replace the content ofarticles.ImmutableBatchSitewithArticles(Iterable<? extends CreateBuilder.CreateArticle> elements)Copy the current immutable object with elements that replace the content ofarticles.ImmutableBatchSitewithLinks(CreateBuilder.CreateLink... elements)Copy the current immutable object with elements that replace the content oflinks.ImmutableBatchSitewithLinks(Iterable<? extends CreateBuilder.CreateLink> elements)Copy the current immutable object with elements that replace the content oflinks.ImmutableBatchSitewithLocales(CreateBuilder.CreateLocale... elements)Copy the current immutable object with elements that replace the content oflocales.ImmutableBatchSitewithLocales(Iterable<? extends CreateBuilder.CreateLocale> elements)Copy the current immutable object with elements that replace the content oflocales.ImmutableBatchSitewithPages(CreateBuilder.CreatePage... elements)Copy the current immutable object with elements that replace the content ofpages.ImmutableBatchSitewithPages(Iterable<? extends CreateBuilder.CreatePage> elements)Copy the current immutable object with elements that replace the content ofpages.ImmutableBatchSitewithWorkflows(CreateBuilder.CreateWorkflow... elements)Copy the current immutable object with elements that replace the content ofworkflows.ImmutableBatchSitewithWorkflows(Iterable<? extends CreateBuilder.CreateWorkflow> elements)Copy the current immutable object with elements that replace the content ofworkflows.
-
-
-
Method Detail
-
getLocales
public com.google.common.collect.ImmutableList<CreateBuilder.CreateLocale> getLocales()
- Specified by:
getLocalesin interfaceCreateBuilder.BatchSite- Returns:
- The value of the
localesattribute
-
getPages
public com.google.common.collect.ImmutableList<CreateBuilder.CreatePage> getPages()
- Specified by:
getPagesin interfaceCreateBuilder.BatchSite- Returns:
- The value of the
pagesattribute
-
getArticles
public com.google.common.collect.ImmutableList<CreateBuilder.CreateArticle> getArticles()
- Specified by:
getArticlesin interfaceCreateBuilder.BatchSite- Returns:
- The value of the
articlesattribute
-
getWorkflows
public com.google.common.collect.ImmutableList<CreateBuilder.CreateWorkflow> getWorkflows()
- Specified by:
getWorkflowsin interfaceCreateBuilder.BatchSite- Returns:
- The value of the
workflowsattribute
-
getLinks
public com.google.common.collect.ImmutableList<CreateBuilder.CreateLink> getLinks()
- Specified by:
getLinksin interfaceCreateBuilder.BatchSite- Returns:
- The value of the
linksattribute
-
withLocales
public final ImmutableBatchSite withLocales(CreateBuilder.CreateLocale... elements)
Copy the current immutable object with elements that replace the content oflocales.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLocales
public final ImmutableBatchSite withLocales(Iterable<? extends CreateBuilder.CreateLocale> elements)
Copy the current immutable object with elements that replace the content oflocales. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of locales elements to set- Returns:
- A modified copy of
thisobject
-
withPages
public final ImmutableBatchSite withPages(CreateBuilder.CreatePage... elements)
Copy the current immutable object with elements that replace the content ofpages.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withPages
public final ImmutableBatchSite withPages(Iterable<? extends CreateBuilder.CreatePage> elements)
Copy the current immutable object with elements that replace the content ofpages. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of pages elements to set- Returns:
- A modified copy of
thisobject
-
withArticles
public final ImmutableBatchSite withArticles(CreateBuilder.CreateArticle... elements)
Copy the current immutable object with elements that replace the content ofarticles.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withArticles
public final ImmutableBatchSite withArticles(Iterable<? extends CreateBuilder.CreateArticle> elements)
Copy the current immutable object with elements that replace the content ofarticles. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of articles elements to set- Returns:
- A modified copy of
thisobject
-
withWorkflows
public final ImmutableBatchSite withWorkflows(CreateBuilder.CreateWorkflow... elements)
Copy the current immutable object with elements that replace the content ofworkflows.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withWorkflows
public final ImmutableBatchSite withWorkflows(Iterable<? extends CreateBuilder.CreateWorkflow> elements)
Copy the current immutable object with elements that replace the content ofworkflows. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of workflows elements to set- Returns:
- A modified copy of
thisobject
-
withLinks
public final ImmutableBatchSite withLinks(CreateBuilder.CreateLink... elements)
Copy the current immutable object with elements that replace the content oflinks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLinks
public final ImmutableBatchSite withLinks(Iterable<? extends CreateBuilder.CreateLink> elements)
Copy the current immutable object with elements that replace the content oflinks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of links elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableBatchSitethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:locales,pages,articles,workflows,links.
-
toString
public String toString()
Prints the immutable valueBatchSitewith attribute values.
-
copyOf
public static ImmutableBatchSite copyOf(CreateBuilder.BatchSite instance)
Creates an immutable copy of aCreateBuilder.BatchSitevalue. 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 forImmutableBatchSite.ImmutableBatchSite.builder() .addLocales|addAllLocales(io.thestencil.client.api.CreateBuilder.CreateLocale) //localeselements .addPages|addAllPages(io.thestencil.client.api.CreateBuilder.CreatePage) //pageselements .addArticles|addAllArticles(io.thestencil.client.api.CreateBuilder.CreateArticle) //articleselements .addWorkflows|addAllWorkflows(io.thestencil.client.api.CreateBuilder.CreateWorkflow) //workflowselements .addLinks|addAllLinks(io.thestencil.client.api.CreateBuilder.CreateLink) //linkselements .build();- Returns:
- A new ImmutableBatchSite builder
-
-