@NotThreadSafe public static final class ImmutableReferenceEdge.Builder extends Object
ImmutableReferenceEdge
.
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 |
---|---|
ImmutableReferenceEdge |
build()
Builds a new
ImmutableReferenceEdge . |
ImmutableReferenceEdge.Builder |
from(Edge instance)
Fill a builder with attribute values from the provided
com.riadalabs.jira.plugins.insight.services.model.graph.Edge instance. |
ImmutableReferenceEdge.Builder |
from(ReferenceEdge instance)
Fill a builder with attribute values from the provided
com.riadalabs.jira.plugins.insight.services.model.graph.ReferenceEdge instance. |
ImmutableReferenceEdge.Builder |
setFrom(String from)
Initializes the value for the
from attribute. |
ImmutableReferenceEdge.Builder |
setLabel(String label)
Initializes the value for the
label attribute. |
ImmutableReferenceEdge.Builder |
setObjectTypeAttribute(ObjectTypeAttributeBean objectTypeAttribute)
Initializes the value for the
objectTypeAttribute attribute. |
ImmutableReferenceEdge.Builder |
setTo(String to)
Initializes the value for the
to attribute. |
ImmutableReferenceEdge.Builder |
setType(ReferenceEdge.Type type)
Initializes the value for the
type attribute. |
@CanIgnoreReturnValue public final ImmutableReferenceEdge.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 ImmutableReferenceEdge.Builder from(ReferenceEdge instance)
com.riadalabs.jira.plugins.insight.services.model.graph.ReferenceEdge
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setFrom(String from)
from
attribute.from
- The value for fromthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setTo(String to)
to
attribute.to
- The value for tothis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setLabel(String label)
label
attribute.label
- The value for labelthis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setObjectTypeAttribute(ObjectTypeAttributeBean objectTypeAttribute)
objectTypeAttribute
attribute.objectTypeAttribute
- The value for objectTypeAttributethis
builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setType(ReferenceEdge.Type type)
type
attribute.
If not set, this attribute will have a default value as returned by the initializer of type
.
type
- The value for typethis
builder for use in a chained invocationpublic ImmutableReferenceEdge build()
ImmutableReferenceEdge
.IllegalStateException
- if any required attributes are missingCopyright © 2024 Atlassian. All rights reserved.