Package io.thestencil.client.api
Class ImmutableArticleReleaseItem
- java.lang.Object
-
- io.thestencil.client.api.ImmutableArticleReleaseItem
-
- All Implemented Interfaces:
StencilClient.ArticleReleaseItem,StencilClient.ReleaseItem,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableArticleReleaseItem extends Object implements StencilClient.ArticleReleaseItem
Immutable implementation ofStencilClient.ArticleReleaseItem.Use the builder to create immutable instances:
ImmutableArticleReleaseItem.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableArticleReleaseItem.BuilderBuilds instances of typeImmutableArticleReleaseItem.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableArticleReleaseItem.Builderbuilder()Creates a builder forImmutableArticleReleaseItem.static ImmutableArticleReleaseItemcopyOf(StencilClient.ArticleReleaseItem instance)Creates an immutable copy of aStencilClient.ArticleReleaseItemvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableArticleReleaseItemthat have equal attribute values.StringgetHash()StringgetId()StringgetName()StringgetParentId()inthashCode()Computes a hash code from attributes:id,hash,name,parentId.StringtoString()Prints the immutable valueArticleReleaseItemwith attribute values.ImmutableArticleReleaseItemwithHash(String value)Copy the current immutable object by setting a value for thehashattribute.ImmutableArticleReleaseItemwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableArticleReleaseItemwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableArticleReleaseItemwithParentId(String value)Copy the current immutable object by setting a value for theparentIdattribute.
-
-
-
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
-
getName
public String getName()
- Specified by:
getNamein interfaceStencilClient.ArticleReleaseItem- Returns:
- The value of the
nameattribute
-
getParentId
@Nullable public String getParentId()
- Specified by:
getParentIdin interfaceStencilClient.ArticleReleaseItem- Returns:
- The value of the
parentIdattribute
-
withId
public final ImmutableArticleReleaseItem 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 ImmutableArticleReleaseItem 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
-
withName
public final ImmutableArticleReleaseItem 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
-
withParentId
public final ImmutableArticleReleaseItem withParentId(@Nullable String value)
Copy the current immutable object by setting a value for theparentIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for parentId (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableArticleReleaseItemthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,hash,name,parentId.
-
toString
public String toString()
Prints the immutable valueArticleReleaseItemwith attribute values.
-
copyOf
public static ImmutableArticleReleaseItem copyOf(StencilClient.ArticleReleaseItem instance)
Creates an immutable copy of aStencilClient.ArticleReleaseItemvalue. 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 ArticleReleaseItem instance
-
builder
public static ImmutableArticleReleaseItem.Builder builder()
Creates a builder forImmutableArticleReleaseItem.ImmutableArticleReleaseItem.builder() .id(String) // requiredid.hash(String) // requiredhash.name(String) // requiredname.parentId(String | null) // nullableparentId.build();- Returns:
- A new ImmutableArticleReleaseItem builder
-
-