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.StringgetName()StringgetNote()StringgetParentCommit()inthashCode()Computes a hash code from attributes:parentCommit,name,note.StringtoString()Prints the immutable valueReleasewith attribute values.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.ImmutableReleasewithParentCommit(String value)Copy the current immutable object by setting a value for theparentCommitattribute.
-
-
-
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
-
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
-
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.
-
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.build();- Returns:
- A new ImmutableRelease builder
-
-