Package io.thestencil.client.api
Class ImmutableWorkflowArticlePage.Builder
- java.lang.Object
-
- io.thestencil.client.api.ImmutableWorkflowArticlePage.Builder
-
- Enclosing class:
- ImmutableWorkflowArticlePage
@NotThreadSafe public static final class ImmutableWorkflowArticlePage.Builder extends Object
Builds instances of typeImmutableWorkflowArticlePage. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableWorkflowArticlePage.BuilderarticleId(String articleId)Initializes the value for thearticleIdattribute.ImmutableWorkflowArticlePagebuild()Builds a newImmutableWorkflowArticlePage.ImmutableWorkflowArticlePage.Builderfrom(DeleteBuilder.WorkflowArticlePage instance)Fill a builder with attribute values from the providedWorkflowArticlePageinstance.ImmutableWorkflowArticlePage.BuilderworkflowId(String workflowId)Initializes the value for theworkflowIdattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableWorkflowArticlePage.Builder from(DeleteBuilder.WorkflowArticlePage instance)
Fill a builder with attribute values from the providedWorkflowArticlePageinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
workflowId
@CanIgnoreReturnValue public final ImmutableWorkflowArticlePage.Builder workflowId(String workflowId)
Initializes the value for theworkflowIdattribute.- Parameters:
workflowId- The value for workflowId- Returns:
thisbuilder for use in a chained invocation
-
articleId
@CanIgnoreReturnValue public final ImmutableWorkflowArticlePage.Builder articleId(String articleId)
Initializes the value for thearticleIdattribute.- Parameters:
articleId- The value for articleId- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableWorkflowArticlePage build()
Builds a newImmutableWorkflowArticlePage.- Returns:
- An immutable instance of WorkflowArticlePage
- Throws:
IllegalStateException- if any required attributes are missing
-
-