@NotThreadSafe public static final class ImmutableParentEdge.Builder extends Object
ImmutableParentEdge
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
Modifier and Type | Method and Description |
---|---|
ImmutableParentEdge |
build()
Builds a new
ImmutableParentEdge . |
ImmutableParentEdge.Builder |
from(Edge instance)
Fill a builder with attribute values from the provided
com.riadalabs.jira.plugins.insight.services.model.graph.Edge instance. |
ImmutableParentEdge.Builder |
from(ParentEdge instance)
Fill a builder with attribute values from the provided
com.riadalabs.jira.plugins.insight.services.model.graph.ParentEdge instance. |
ImmutableParentEdge.Builder |
setFrom(String from)
Initializes the value for the
from attribute. |
ImmutableParentEdge.Builder |
setInherited(boolean inherited)
Initializes the value for the
inherited attribute. |
ImmutableParentEdge.Builder |
setLabel(String label)
Initializes the value for the
label attribute. |
ImmutableParentEdge.Builder |
setTo(String to)
Initializes the value for the
to attribute. |
@CanIgnoreReturnValue public final ImmutableParentEdge.Builder from(Edge instance)
com.riadalabs.jira.plugins.insight.services.model.graph.Edge
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableParentEdge.Builder from(ParentEdge instance)
com.riadalabs.jira.plugins.insight.services.model.graph.ParentEdge
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableParentEdge.Builder setFrom(String from)
from
attribute.from
- The value for fromthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableParentEdge.Builder setTo(String to)
to
attribute.to
- The value for tothis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableParentEdge.Builder setLabel(String label)
label
attribute.label
- The value for labelthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableParentEdge.Builder setInherited(boolean inherited)
inherited
attribute.inherited
- The value for inheritedthis
builder for use in a chained invocationpublic ImmutableParentEdge build()
ImmutableParentEdge
.IllegalStateException
- if any required attributes are missingCopyright © 2024 Atlassian. All rights reserved.