Package io.thestencil.client.api
Class ImmutableCreateRelease
- java.lang.Object
-
- io.thestencil.client.api.ImmutableCreateRelease
-
- All Implemented Interfaces:
CreateBuilder.Command,CreateBuilder.CreateRelease,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCreateRelease extends Object implements CreateBuilder.CreateRelease
Immutable implementation ofCreateBuilder.CreateRelease.Use the builder to create immutable instances:
ImmutableCreateRelease.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCreateRelease.BuilderBuilds instances of typeImmutableCreateRelease.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCreateRelease.Builderbuilder()Creates a builder forImmutableCreateRelease.static ImmutableCreateReleasecopyOf(CreateBuilder.CreateRelease instance)Creates an immutable copy of aCreateBuilder.CreateReleasevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCreateReleasethat have equal attribute values.StringgetId()StringgetName()StringgetNote()inthashCode()Computes a hash code from attributes:id,name,note.StringtoString()Prints the immutable valueCreateReleasewith attribute values.ImmutableCreateReleasewithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableCreateReleasewithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCreateReleasewithNote(String value)Copy the current immutable object by setting a value for thenoteattribute.
-
-
-
Method Detail
-
getId
@Nullable public String getId()
- Specified by:
getIdin interfaceCreateBuilder.CreateRelease- Returns:
- The value of the
idattribute
-
getName
public String getName()
- Specified by:
getNamein interfaceCreateBuilder.CreateRelease- Returns:
- The value of the
nameattribute
-
getNote
@Nullable public String getNote()
- Specified by:
getNotein interfaceCreateBuilder.CreateRelease- Returns:
- The value of the
noteattribute
-
withId
public final ImmutableCreateRelease withId(@Nullable 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 (can benull)- Returns:
- A modified copy of the
thisobject
-
withName
public final ImmutableCreateRelease 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 ImmutableCreateRelease withNote(@Nullable 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 (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableCreateReleasethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,name,note.
-
toString
public String toString()
Prints the immutable valueCreateReleasewith attribute values.
-
copyOf
public static ImmutableCreateRelease copyOf(CreateBuilder.CreateRelease instance)
Creates an immutable copy of aCreateBuilder.CreateReleasevalue. 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 CreateRelease instance
-
builder
public static ImmutableCreateRelease.Builder builder()
Creates a builder forImmutableCreateRelease.ImmutableCreateRelease.builder() .id(String | null) // nullableid.name(String) // requiredname.note(String | null) // nullablenote.build();- Returns:
- A new ImmutableCreateRelease builder
-
-