Package io.thestencil.client.api
Class ImmutableWorkflowReleaseItem
- java.lang.Object
-
- io.thestencil.client.api.ImmutableWorkflowReleaseItem
-
- All Implemented Interfaces:
StencilClient.ReleaseItem,StencilClient.WorkflowReleaseItem,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableWorkflowReleaseItem extends Object implements StencilClient.WorkflowReleaseItem
Immutable implementation ofStencilClient.WorkflowReleaseItem.Use the builder to create immutable instances:
ImmutableWorkflowReleaseItem.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableWorkflowReleaseItem.BuilderBuilds instances of typeImmutableWorkflowReleaseItem.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableWorkflowReleaseItem.Builderbuilder()Creates a builder forImmutableWorkflowReleaseItem.static ImmutableWorkflowReleaseItemcopyOf(StencilClient.WorkflowReleaseItem instance)Creates an immutable copy of aStencilClient.WorkflowReleaseItemvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableWorkflowReleaseItemthat have equal attribute values.com.google.common.collect.ImmutableList<String>getArticles()StringgetHash()StringgetId()com.google.common.collect.ImmutableList<StencilClient.LocaleLabel>getLabels()StringgetValue()inthashCode()Computes a hash code from attributes:id,hash,value,articles,labels.StringtoString()Prints the immutable valueWorkflowReleaseItemwith attribute values.ImmutableWorkflowReleaseItemwithArticles(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofarticles.ImmutableWorkflowReleaseItemwithArticles(String... elements)Copy the current immutable object with elements that replace the content ofarticles.ImmutableWorkflowReleaseItemwithHash(String value)Copy the current immutable object by setting a value for thehashattribute.ImmutableWorkflowReleaseItemwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableWorkflowReleaseItemwithLabels(StencilClient.LocaleLabel... elements)Copy the current immutable object with elements that replace the content oflabels.ImmutableWorkflowReleaseItemwithLabels(Iterable<? extends StencilClient.LocaleLabel> elements)Copy the current immutable object with elements that replace the content oflabels.ImmutableWorkflowReleaseItemwithValue(String value)Copy the current immutable object by setting a value for thevalueattribute.
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceStencilClient.ReleaseItem- Returns:
- The value of the
idattribute
-
getHash
public String getHash()
- Specified by:
getHashin interfaceStencilClient.ReleaseItem- Returns:
- The value of the
hashattribute
-
getValue
public String getValue()
- Specified by:
getValuein interfaceStencilClient.WorkflowReleaseItem- Returns:
- The value of the
valueattribute
-
getArticles
public com.google.common.collect.ImmutableList<String> getArticles()
- Specified by:
getArticlesin interfaceStencilClient.WorkflowReleaseItem- Returns:
- The value of the
articlesattribute
-
getLabels
public com.google.common.collect.ImmutableList<StencilClient.LocaleLabel> getLabels()
- Specified by:
getLabelsin interfaceStencilClient.WorkflowReleaseItem- Returns:
- The value of the
labelsattribute
-
withId
public final ImmutableWorkflowReleaseItem withId(String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withHash
public final ImmutableWorkflowReleaseItem withHash(String value)
Copy the current immutable object by setting a value for thehashattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hash- Returns:
- A modified copy of the
thisobject
-
withValue
public final ImmutableWorkflowReleaseItem withValue(String value)
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy of the
thisobject
-
withArticles
public final ImmutableWorkflowReleaseItem withArticles(String... 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 ImmutableWorkflowReleaseItem withArticles(Iterable<String> 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
-
withLabels
public final ImmutableWorkflowReleaseItem withLabels(StencilClient.LocaleLabel... elements)
Copy the current immutable object with elements that replace the content oflabels.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLabels
public final ImmutableWorkflowReleaseItem withLabels(Iterable<? extends StencilClient.LocaleLabel> elements)
Copy the current immutable object with elements that replace the content oflabels. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of labels elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableWorkflowReleaseItemthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,hash,value,articles,labels.
-
toString
public String toString()
Prints the immutable valueWorkflowReleaseItemwith attribute values.
-
copyOf
public static ImmutableWorkflowReleaseItem copyOf(StencilClient.WorkflowReleaseItem instance)
Creates an immutable copy of aStencilClient.WorkflowReleaseItemvalue. 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 WorkflowReleaseItem instance
-
builder
public static ImmutableWorkflowReleaseItem.Builder builder()
Creates a builder forImmutableWorkflowReleaseItem.ImmutableWorkflowReleaseItem.builder() .id(String) // requiredid.hash(String) // requiredhash.value(String) // requiredvalue.addArticles|addAllArticles(String) //articleselements .addLabels|addAllLabels(io.thestencil.client.api.StencilClient.LocaleLabel) //labelselements .build();- Returns:
- A new ImmutableWorkflowReleaseItem builder
-
-