Package io.thestencil.client.api
Class ImmutablePageReleaseItem
- java.lang.Object
-
- io.thestencil.client.api.ImmutablePageReleaseItem
-
- All Implemented Interfaces:
StencilClient.PageReleaseItem,StencilClient.ReleaseItem,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePageReleaseItem extends Object implements StencilClient.PageReleaseItem
Immutable implementation ofStencilClient.PageReleaseItem.Use the builder to create immutable instances:
ImmutablePageReleaseItem.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutablePageReleaseItem.BuilderBuilds instances of typeImmutablePageReleaseItem.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutablePageReleaseItem.Builderbuilder()Creates a builder forImmutablePageReleaseItem.static ImmutablePageReleaseItemcopyOf(StencilClient.PageReleaseItem instance)Creates an immutable copy of aStencilClient.PageReleaseItemvalue.booleanequals(Object another)This instance is equal to all instances ofImmutablePageReleaseItemthat have equal attribute values.StringgetH1()StringgetHash()StringgetId()StringgetLocale()inthashCode()Computes a hash code from attributes:id,hash,locale,h1.StringtoString()Prints the immutable valuePageReleaseItemwith attribute values.ImmutablePageReleaseItemwithH1(String value)Copy the current immutable object by setting a value for theh1attribute.ImmutablePageReleaseItemwithHash(String value)Copy the current immutable object by setting a value for thehashattribute.ImmutablePageReleaseItemwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutablePageReleaseItemwithLocale(String value)Copy the current immutable object by setting a value for thelocaleattribute.
-
-
-
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
-
getLocale
public String getLocale()
- Specified by:
getLocalein interfaceStencilClient.PageReleaseItem- Returns:
- The value of the
localeattribute
-
getH1
public String getH1()
- Specified by:
getH1in interfaceStencilClient.PageReleaseItem- Returns:
- The value of the
h1attribute
-
withId
public final ImmutablePageReleaseItem 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 ImmutablePageReleaseItem 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
-
withLocale
public final ImmutablePageReleaseItem withLocale(String value)
Copy the current immutable object by setting a value for thelocaleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for locale- Returns:
- A modified copy of the
thisobject
-
withH1
public final ImmutablePageReleaseItem withH1(String value)
Copy the current immutable object by setting a value for theh1attribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for h1- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutablePageReleaseItemthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,hash,locale,h1.
-
toString
public String toString()
Prints the immutable valuePageReleaseItemwith attribute values.
-
copyOf
public static ImmutablePageReleaseItem copyOf(StencilClient.PageReleaseItem instance)
Creates an immutable copy of aStencilClient.PageReleaseItemvalue. 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 PageReleaseItem instance
-
builder
public static ImmutablePageReleaseItem.Builder builder()
Creates a builder forImmutablePageReleaseItem.ImmutablePageReleaseItem.builder() .id(String) // requiredid.hash(String) // requiredhash.locale(String) // requiredlocale.h1(String) // requiredh1.build();- Returns:
- A new ImmutablePageReleaseItem builder
-
-