Package io.thestencil.client.api
Class ImmutableWorkflowMutator
- java.lang.Object
-
- io.thestencil.client.api.ImmutableWorkflowMutator
-
- All Implemented Interfaces:
UpdateBuilder.WorkflowMutator
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableWorkflowMutator extends Object implements UpdateBuilder.WorkflowMutator
Immutable implementation ofUpdateBuilder.WorkflowMutator.Use the builder to create immutable instances:
ImmutableWorkflowMutator.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableWorkflowMutator.BuilderBuilds instances of typeImmutableWorkflowMutator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableWorkflowMutator.Builderbuilder()Creates a builder forImmutableWorkflowMutator.static ImmutableWorkflowMutatorcopyOf(UpdateBuilder.WorkflowMutator instance)Creates an immutable copy of aUpdateBuilder.WorkflowMutatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableWorkflowMutatorthat have equal attribute values.com.google.common.collect.ImmutableList<String>getArticles()StringgetContent()StringgetLocale()StringgetName()StringgetWorkflowId()inthashCode()Computes a hash code from attributes:workflowId,name,locale,content,articles.StringtoString()Prints the immutable valueWorkflowMutatorwith attribute values.ImmutableWorkflowMutatorwithArticles(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofarticles.ImmutableWorkflowMutatorwithArticles(String... elements)Copy the current immutable object with elements that replace the content ofarticles.ImmutableWorkflowMutatorwithContent(String value)Copy the current immutable object by setting a value for thecontentattribute.ImmutableWorkflowMutatorwithLocale(String value)Copy the current immutable object by setting a value for thelocaleattribute.ImmutableWorkflowMutatorwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableWorkflowMutatorwithWorkflowId(String value)Copy the current immutable object by setting a value for theworkflowIdattribute.
-
-
-
Method Detail
-
getWorkflowId
public String getWorkflowId()
- Specified by:
getWorkflowIdin interfaceUpdateBuilder.WorkflowMutator- Returns:
- The value of the
workflowIdattribute
-
getName
public String getName()
- Specified by:
getNamein interfaceUpdateBuilder.WorkflowMutator- Returns:
- The value of the
nameattribute
-
getLocale
public String getLocale()
- Specified by:
getLocalein interfaceUpdateBuilder.WorkflowMutator- Returns:
- The value of the
localeattribute
-
getContent
public String getContent()
- Specified by:
getContentin interfaceUpdateBuilder.WorkflowMutator- Returns:
- The value of the
contentattribute
-
getArticles
public com.google.common.collect.ImmutableList<String> getArticles()
- Specified by:
getArticlesin interfaceUpdateBuilder.WorkflowMutator- Returns:
- The value of the
articlesattribute
-
withWorkflowId
public final ImmutableWorkflowMutator withWorkflowId(String value)
Copy the current immutable object by setting a value for theworkflowIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for workflowId- Returns:
- A modified copy of the
thisobject
-
withName
public final ImmutableWorkflowMutator 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 ImmutableWorkflowMutator 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 ImmutableWorkflowMutator 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 ImmutableWorkflowMutator 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 ImmutableWorkflowMutator 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 ofImmutableWorkflowMutatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:workflowId,name,locale,content,articles.
-
toString
public String toString()
Prints the immutable valueWorkflowMutatorwith attribute values.
-
copyOf
public static ImmutableWorkflowMutator copyOf(UpdateBuilder.WorkflowMutator instance)
Creates an immutable copy of aUpdateBuilder.WorkflowMutatorvalue. 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 WorkflowMutator instance
-
builder
public static ImmutableWorkflowMutator.Builder builder()
Creates a builder forImmutableWorkflowMutator.ImmutableWorkflowMutator.builder() .workflowId(String) // requiredworkflowId.name(String) // requiredname.locale(String) // requiredlocale.content(String) // requiredcontent.addArticles|addAllArticles(String) //articleselements .build();- Returns:
- A new ImmutableWorkflowMutator builder
-
-