Package io.thestencil.client.api
Class ImmutableTemplateReleaseItem
- java.lang.Object
-
- io.thestencil.client.api.ImmutableTemplateReleaseItem
-
- All Implemented Interfaces:
StencilClient.ReleaseItem,StencilClient.TemplateReleaseItem,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTemplateReleaseItem extends Object implements StencilClient.TemplateReleaseItem
Immutable implementation ofStencilClient.TemplateReleaseItem.Use the builder to create immutable instances:
ImmutableTemplateReleaseItem.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableTemplateReleaseItem.BuilderBuilds instances of typeImmutableTemplateReleaseItem.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableTemplateReleaseItem.Builderbuilder()Creates a builder forImmutableTemplateReleaseItem.static ImmutableTemplateReleaseItemcopyOf(StencilClient.TemplateReleaseItem instance)Creates an immutable copy of aStencilClient.TemplateReleaseItemvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableTemplateReleaseItemthat have equal attribute values.StringgetContent()StringgetHash()StringgetId()StringgetName()StringgetType()inthashCode()Computes a hash code from attributes:id,hash,name,content,type.StringtoString()Prints the immutable valueTemplateReleaseItemwith attribute values.ImmutableTemplateReleaseItemwithContent(String value)Copy the current immutable object by setting a value for thecontentattribute.ImmutableTemplateReleaseItemwithHash(String value)Copy the current immutable object by setting a value for thehashattribute.ImmutableTemplateReleaseItemwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableTemplateReleaseItemwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableTemplateReleaseItemwithType(String value)Copy the current immutable object by setting a value for thetypeattribute.
-
-
-
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.TemplateReleaseItem- Returns:
- The value of the
nameattribute
-
getContent
public String getContent()
- Specified by:
getContentin interfaceStencilClient.TemplateReleaseItem- Returns:
- The value of the
contentattribute
-
getType
public String getType()
- Specified by:
getTypein interfaceStencilClient.TemplateReleaseItem- Returns:
- The value of the
typeattribute
-
withId
public final ImmutableTemplateReleaseItem 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 ImmutableTemplateReleaseItem 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 ImmutableTemplateReleaseItem 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
-
withContent
public final ImmutableTemplateReleaseItem withContent(String value)
Copy the current immutable object by setting a value for thecontentattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for content- Returns:
- A modified copy of the
thisobject
-
withType
public final ImmutableTemplateReleaseItem withType(String value)
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableTemplateReleaseItemthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,hash,name,content,type.
-
toString
public String toString()
Prints the immutable valueTemplateReleaseItemwith attribute values.
-
copyOf
public static ImmutableTemplateReleaseItem copyOf(StencilClient.TemplateReleaseItem instance)
Creates an immutable copy of aStencilClient.TemplateReleaseItemvalue. 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 TemplateReleaseItem instance
-
builder
public static ImmutableTemplateReleaseItem.Builder builder()
Creates a builder forImmutableTemplateReleaseItem.ImmutableTemplateReleaseItem.builder() .id(String) // requiredid.hash(String) // requiredhash.name(String) // requiredname.content(String) // requiredcontent.type(String) // requiredtype.build();- Returns:
- A new ImmutableTemplateReleaseItem builder
-
-