Package io.thestencil.client.api
Class ImmutableRelease
- java.lang.Object
-
- io.thestencil.client.api.ImmutableRelease
-
- All Implemented Interfaces:
StencilClient.EntityBody,StencilClient.Release,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRelease extends Object implements StencilClient.Release
Immutable implementation ofStencilClient.Release.Use the builder to create immutable instances:
ImmutableRelease.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRelease.BuilderBuilds instances of typeImmutableRelease.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRelease.Builderbuilder()Creates a builder forImmutableRelease.static ImmutableReleasecopyOf(StencilClient.Release instance)Creates an immutable copy of aStencilClient.Releasevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableReleasethat have equal attribute values.com.google.common.collect.ImmutableList<StencilClient.ArticleReleaseItem>getArticles()LocalDateTimegetCreated()com.google.common.collect.ImmutableList<StencilClient.LinkReleaseItem>getLinks()com.google.common.collect.ImmutableList<StencilClient.LocaleReleaseItem>getLocales()StringgetName()StringgetNote()com.google.common.collect.ImmutableList<StencilClient.PageReleaseItem>getPages()StringgetParentCommit()com.google.common.collect.ImmutableList<StencilClient.TemplateReleaseItem>getTemplates()com.google.common.collect.ImmutableList<StencilClient.WorkflowReleaseItem>getWorkflows()inthashCode()Computes a hash code from attributes:parentCommit,name,note,created,locales,articles,links,workflows,pages,templates.StringtoString()Prints the immutable valueReleasewith attribute values.ImmutableReleasewithArticles(StencilClient.ArticleReleaseItem... elements)Copy the current immutable object with elements that replace the content ofarticles.ImmutableReleasewithArticles(Iterable<? extends StencilClient.ArticleReleaseItem> elements)Copy the current immutable object with elements that replace the content ofarticles.ImmutableReleasewithCreated(LocalDateTime value)Copy the current immutable object by setting a value for thecreatedattribute.ImmutableReleasewithLinks(StencilClient.LinkReleaseItem... elements)Copy the current immutable object with elements that replace the content oflinks.ImmutableReleasewithLinks(Iterable<? extends StencilClient.LinkReleaseItem> elements)Copy the current immutable object with elements that replace the content oflinks.ImmutableReleasewithLocales(StencilClient.LocaleReleaseItem... elements)Copy the current immutable object with elements that replace the content oflocales.ImmutableReleasewithLocales(Iterable<? extends StencilClient.LocaleReleaseItem> elements)Copy the current immutable object with elements that replace the content oflocales.ImmutableReleasewithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableReleasewithNote(String value)Copy the current immutable object by setting a value for thenoteattribute.ImmutableReleasewithPages(StencilClient.PageReleaseItem... elements)Copy the current immutable object with elements that replace the content ofpages.ImmutableReleasewithPages(Iterable<? extends StencilClient.PageReleaseItem> elements)Copy the current immutable object with elements that replace the content ofpages.ImmutableReleasewithParentCommit(String value)Copy the current immutable object by setting a value for theparentCommitattribute.ImmutableReleasewithTemplates(StencilClient.TemplateReleaseItem... elements)Copy the current immutable object with elements that replace the content oftemplates.ImmutableReleasewithTemplates(Iterable<? extends StencilClient.TemplateReleaseItem> elements)Copy the current immutable object with elements that replace the content oftemplates.ImmutableReleasewithWorkflows(StencilClient.WorkflowReleaseItem... elements)Copy the current immutable object with elements that replace the content ofworkflows.ImmutableReleasewithWorkflows(Iterable<? extends StencilClient.WorkflowReleaseItem> elements)Copy the current immutable object with elements that replace the content ofworkflows.
-
-
-
Method Detail
-
getParentCommit
public String getParentCommit()
- Specified by:
getParentCommitin interfaceStencilClient.Release- Returns:
- The value of the
parentCommitattribute
-
getName
public String getName()
- Specified by:
getNamein interfaceStencilClient.Release- Returns:
- The value of the
nameattribute
-
getNote
public String getNote()
- Specified by:
getNotein interfaceStencilClient.Release- Returns:
- The value of the
noteattribute
-
getCreated
public LocalDateTime getCreated()
- Specified by:
getCreatedin interfaceStencilClient.Release- Returns:
- The value of the
createdattribute
-
getLocales
public com.google.common.collect.ImmutableList<StencilClient.LocaleReleaseItem> getLocales()
- Specified by:
getLocalesin interfaceStencilClient.Release- Returns:
- The value of the
localesattribute
-
getArticles
public com.google.common.collect.ImmutableList<StencilClient.ArticleReleaseItem> getArticles()
- Specified by:
getArticlesin interfaceStencilClient.Release- Returns:
- The value of the
articlesattribute
-
getLinks
public com.google.common.collect.ImmutableList<StencilClient.LinkReleaseItem> getLinks()
- Specified by:
getLinksin interfaceStencilClient.Release- Returns:
- The value of the
linksattribute
-
getWorkflows
public com.google.common.collect.ImmutableList<StencilClient.WorkflowReleaseItem> getWorkflows()
- Specified by:
getWorkflowsin interfaceStencilClient.Release- Returns:
- The value of the
workflowsattribute
-
getPages
public com.google.common.collect.ImmutableList<StencilClient.PageReleaseItem> getPages()
- Specified by:
getPagesin interfaceStencilClient.Release- Returns:
- The value of the
pagesattribute
-
getTemplates
public com.google.common.collect.ImmutableList<StencilClient.TemplateReleaseItem> getTemplates()
- Specified by:
getTemplatesin interfaceStencilClient.Release- Returns:
- The value of the
templatesattribute
-
withParentCommit
public final ImmutableRelease withParentCommit(String value)
Copy the current immutable object by setting a value for theparentCommitattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for parentCommit- Returns:
- A modified copy of the
thisobject
-
withName
public final ImmutableRelease withName(String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withNote
public final ImmutableRelease withNote(String value)
Copy the current immutable object by setting a value for thenoteattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for note- Returns:
- A modified copy of the
thisobject
-
withCreated
public final ImmutableRelease withCreated(LocalDateTime value)
Copy the current immutable object by setting a value for thecreatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for created- Returns:
- A modified copy of the
thisobject
-
withLocales
public final ImmutableRelease withLocales(StencilClient.LocaleReleaseItem... 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 ImmutableRelease withLocales(Iterable<? extends StencilClient.LocaleReleaseItem> 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
-
withArticles
public final ImmutableRelease withArticles(StencilClient.ArticleReleaseItem... 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 ImmutableRelease withArticles(Iterable<? extends StencilClient.ArticleReleaseItem> 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
-
withLinks
public final ImmutableRelease withLinks(StencilClient.LinkReleaseItem... 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 ImmutableRelease withLinks(Iterable<? extends StencilClient.LinkReleaseItem> 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
-
withWorkflows
public final ImmutableRelease withWorkflows(StencilClient.WorkflowReleaseItem... 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 ImmutableRelease withWorkflows(Iterable<? extends StencilClient.WorkflowReleaseItem> 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
-
withPages
public final ImmutableRelease withPages(StencilClient.PageReleaseItem... 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 ImmutableRelease withPages(Iterable<? extends StencilClient.PageReleaseItem> 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
-
withTemplates
public final ImmutableRelease withTemplates(StencilClient.TemplateReleaseItem... elements)
Copy the current immutable object with elements that replace the content oftemplates.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTemplates
public final ImmutableRelease withTemplates(Iterable<? extends StencilClient.TemplateReleaseItem> elements)
Copy the current immutable object with elements that replace the content oftemplates. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of templates elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableReleasethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:parentCommit,name,note,created,locales,articles,links,workflows,pages,templates.
-
toString
public String toString()
Prints the immutable valueReleasewith attribute values.
-
copyOf
public static ImmutableRelease copyOf(StencilClient.Release instance)
Creates an immutable copy of aStencilClient.Releasevalue. 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 forImmutableRelease.ImmutableRelease.builder() .parentCommit(String) // requiredparentCommit.name(String) // requiredname.note(String) // requirednote.created(java.time.LocalDateTime) // requiredcreated.addLocales|addAllLocales(io.thestencil.client.api.StencilClient.LocaleReleaseItem) //localeselements .addArticles|addAllArticles(io.thestencil.client.api.StencilClient.ArticleReleaseItem) //articleselements .addLinks|addAllLinks(io.thestencil.client.api.StencilClient.LinkReleaseItem) //linkselements .addWorkflows|addAllWorkflows(io.thestencil.client.api.StencilClient.WorkflowReleaseItem) //workflowselements .addPages|addAllPages(io.thestencil.client.api.StencilClient.PageReleaseItem) //pageselements .addTemplates|addAllTemplates(io.thestencil.client.api.StencilClient.TemplateReleaseItem) //templateselements .build();- Returns:
- A new ImmutableRelease builder
-
-