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()BooleangetDevMode()com.google.common.collect.ImmutableList<StencilClient.LocaleLabel>getLabels()StringgetValue()inthashCode()Computes a hash code from attributes:value,articles,labels,devMode.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.ImmutableCreateWorkflowwithDevMode(Boolean value)Copy the current immutable object by setting a value for thedevModeattribute.ImmutableCreateWorkflowwithLabels(StencilClient.LocaleLabel... elements)Copy the current immutable object with elements that replace the content oflabels.ImmutableCreateWorkflowwithLabels(Iterable<? extends StencilClient.LocaleLabel> elements)Copy the current immutable object with elements that replace the content oflabels.ImmutableCreateWorkflowwithValue(String value)Copy the current immutable object by setting a value for thevalueattribute.
-
-
-
Method Detail
-
getValue
public String getValue()
- Specified by:
getValuein interfaceCreateBuilder.CreateWorkflow- Returns:
- The value of the
valueattribute
-
getArticles
public com.google.common.collect.ImmutableList<String> getArticles()
- Specified by:
getArticlesin interfaceCreateBuilder.CreateWorkflow- Returns:
- The value of the
articlesattribute
-
getLabels
public com.google.common.collect.ImmutableList<StencilClient.LocaleLabel> getLabels()
- Specified by:
getLabelsin interfaceCreateBuilder.CreateWorkflow- Returns:
- The value of the
labelsattribute
-
getDevMode
@Nullable public Boolean getDevMode()
- Specified by:
getDevModein interfaceCreateBuilder.CreateWorkflow- Returns:
- The value of the
devModeattribute
-
withValue
public final ImmutableCreateWorkflow withValue(String value)
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- 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
-
withLabels
public final ImmutableCreateWorkflow withLabels(StencilClient.LocaleLabel... elements)
Copy the current immutable object with elements that replace the content oflabels.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLabels
public final ImmutableCreateWorkflow withLabels(Iterable<? extends StencilClient.LocaleLabel> elements)
Copy the current immutable object with elements that replace the content oflabels. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of labels elements to set- Returns:
- A modified copy of
thisobject
-
withDevMode
public final ImmutableCreateWorkflow 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 ofImmutableCreateWorkflowthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:value,articles,labels,devMode.
-
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() .value(String) // requiredvalue.addArticles|addAllArticles(String) //articleselements .addLabels|addAllLabels(io.thestencil.client.api.StencilClient.LocaleLabel) //labelselements .devMode(Boolean | null) // nullabledevMode.build();- Returns:
- A new ImmutableCreateWorkflow builder
-
-