Package io.thestencil.client.api
Class ImmutableCreateWorkflow
- java.lang.Object
-
- io.thestencil.client.api.ImmutableCreateWorkflow
-
- All Implemented Interfaces:
CreateBuilder.CreateWorkflow
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCreateWorkflow extends Object implements CreateBuilder.CreateWorkflow
Immutable implementation ofCreateBuilder.CreateWorkflow.Use the builder to create immutable instances:
ImmutableCreateWorkflow.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCreateWorkflow.BuilderBuilds instances of typeImmutableCreateWorkflow.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCreateWorkflow.Builderbuilder()Creates a builder forImmutableCreateWorkflow.static ImmutableCreateWorkflowcopyOf(CreateBuilder.CreateWorkflow instance)Creates an immutable copy of aCreateBuilder.CreateWorkflowvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCreateWorkflowthat have equal attribute values.com.google.common.collect.ImmutableList<String>getArticles()StringgetContent()StringgetLocale()StringgetName()inthashCode()Computes a hash code from attributes:name,locale,content,articles.StringtoString()Prints the immutable valueCreateWorkflowwith attribute values.ImmutableCreateWorkflowwithArticles(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofarticles.ImmutableCreateWorkflowwithArticles(String... elements)Copy the current immutable object with elements that replace the content ofarticles.ImmutableCreateWorkflowwithContent(String value)Copy the current immutable object by setting a value for thecontentattribute.ImmutableCreateWorkflowwithLocale(String value)Copy the current immutable object by setting a value for thelocaleattribute.ImmutableCreateWorkflowwithName(String value)Copy the current immutable object by setting a value for thenameattribute.
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceCreateBuilder.CreateWorkflow- Returns:
- The value of the
nameattribute
-
getLocale
public String getLocale()
- Specified by:
getLocalein interfaceCreateBuilder.CreateWorkflow- Returns:
- The value of the
localeattribute
-
getContent
public String getContent()
- Specified by:
getContentin interfaceCreateBuilder.CreateWorkflow- Returns:
- The value of the
contentattribute
-
getArticles
public com.google.common.collect.ImmutableList<String> getArticles()
- Specified by:
getArticlesin interfaceCreateBuilder.CreateWorkflow- Returns:
- The value of the
articlesattribute
-
withName
public final ImmutableCreateWorkflow 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
-
withLocale
public final ImmutableCreateWorkflow 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 ImmutableCreateWorkflow 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
-
withArticles
public final ImmutableCreateWorkflow withArticles(String... elements)
Copy the current immutable object with elements that replace the content ofarticles.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withArticles
public final ImmutableCreateWorkflow withArticles(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofarticles. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of articles elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableCreateWorkflowthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,locale,content,articles.
-
toString
public String toString()
Prints the immutable valueCreateWorkflowwith attribute values.
-
copyOf
public static ImmutableCreateWorkflow copyOf(CreateBuilder.CreateWorkflow instance)
Creates an immutable copy of aCreateBuilder.CreateWorkflowvalue. 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 CreateWorkflow instance
-
builder
public static ImmutableCreateWorkflow.Builder builder()
Creates a builder forImmutableCreateWorkflow.ImmutableCreateWorkflow.builder() .name(String) // requiredname.locale(String) // requiredlocale.content(String) // requiredcontent.addArticles|addAllArticles(String) //articleselements .build();- Returns:
- A new ImmutableCreateWorkflow builder
-
-