Package io.thestencil.client.api
Class ImmutableCreatePage
- java.lang.Object
-
- io.thestencil.client.api.ImmutableCreatePage
-
- All Implemented Interfaces:
CreateBuilder.Command,CreateBuilder.CreatePage,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCreatePage extends Object implements CreateBuilder.CreatePage
Immutable implementation ofCreateBuilder.CreatePage.Use the builder to create immutable instances:
ImmutableCreatePage.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCreatePage.BuilderBuilds instances of typeImmutableCreatePage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCreatePage.Builderbuilder()Creates a builder forImmutableCreatePage.static ImmutableCreatePagecopyOf(CreateBuilder.CreatePage instance)Creates an immutable copy of aCreateBuilder.CreatePagevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCreatePagethat have equal attribute values.StringgetArticleId()StringgetContent()BooleangetDevMode()StringgetId()StringgetLocale()inthashCode()Computes a hash code from attributes:id,articleId,locale,content,devMode.StringtoString()Prints the immutable valueCreatePagewith attribute values.ImmutableCreatePagewithArticleId(String value)Copy the current immutable object by setting a value for thearticleIdattribute.ImmutableCreatePagewithContent(String value)Copy the current immutable object by setting a value for thecontentattribute.ImmutableCreatePagewithDevMode(Boolean value)Copy the current immutable object by setting a value for thedevModeattribute.ImmutableCreatePagewithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableCreatePagewithLocale(String value)Copy the current immutable object by setting a value for thelocaleattribute.
-
-
-
Method Detail
-
getId
@Nullable public String getId()
- Specified by:
getIdin interfaceCreateBuilder.CreatePage- Returns:
- The value of the
idattribute
-
getArticleId
public String getArticleId()
- Specified by:
getArticleIdin interfaceCreateBuilder.CreatePage- Returns:
- The value of the
articleIdattribute
-
getLocale
public String getLocale()
- Specified by:
getLocalein interfaceCreateBuilder.CreatePage- Returns:
- The value of the
localeattribute
-
getContent
@Nullable public String getContent()
- Specified by:
getContentin interfaceCreateBuilder.CreatePage- Returns:
- The value of the
contentattribute
-
getDevMode
@Nullable public Boolean getDevMode()
- Specified by:
getDevModein interfaceCreateBuilder.CreatePage- Returns:
- The value of the
devModeattribute
-
withId
public final ImmutableCreatePage 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
-
withArticleId
public final ImmutableCreatePage withArticleId(String value)
Copy the current immutable object by setting a value for thearticleIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for articleId- Returns:
- A modified copy of the
thisobject
-
withLocale
public final ImmutableCreatePage 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
-
withContent
public final ImmutableCreatePage withContent(@Nullable 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 (can benull)- Returns:
- A modified copy of the
thisobject
-
withDevMode
public final ImmutableCreatePage withDevMode(@Nullable Boolean value)
Copy the current immutable object by setting a value for thedevModeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for devMode (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableCreatePagethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,articleId,locale,content,devMode.
-
toString
public String toString()
Prints the immutable valueCreatePagewith attribute values.
-
copyOf
public static ImmutableCreatePage copyOf(CreateBuilder.CreatePage instance)
Creates an immutable copy of aCreateBuilder.CreatePagevalue. 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 CreatePage instance
-
builder
public static ImmutableCreatePage.Builder builder()
Creates a builder forImmutableCreatePage.ImmutableCreatePage.builder() .id(String | null) // nullableid.articleId(String) // requiredarticleId.locale(String) // requiredlocale.content(String | null) // nullablecontent.devMode(Boolean | null) // nullabledevMode.build();- Returns:
- A new ImmutableCreatePage builder
-
-