Class ImmutableReferenceEdge.Builder
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.graph.ImmutableReferenceEdge.Builder
- Enclosing class:
- ImmutableReferenceEdge
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newImmutableReferenceEdge
.Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.Edge
instance.from
(ReferenceEdge instance) Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.ReferenceEdge
instance.Initializes the value for thefrom
attribute.Initializes the value for thelabel
attribute.setObjectTypeAttribute
(ObjectTypeAttributeBean objectTypeAttribute) Initializes the value for theobjectTypeAttribute
attribute.Initializes the value for theto
attribute.setType
(ReferenceEdge.Type type) Initializes the value for thetype
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.Edge
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.ReferenceEdge
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setFrom
Initializes the value for thefrom
attribute.- Parameters:
from
- The value for from- Returns:
this
builder for use in a chained invocation
-
setTo
Initializes the value for theto
attribute.- Parameters:
to
- The value for to- Returns:
this
builder for use in a chained invocation
-
setLabel
Initializes the value for thelabel
attribute.- Parameters:
label
- The value for label- Returns:
this
builder for use in a chained invocation
-
setObjectTypeAttribute
@CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setObjectTypeAttribute(ObjectTypeAttributeBean objectTypeAttribute) Initializes the value for theobjectTypeAttribute
attribute.- Parameters:
objectTypeAttribute
- The value for objectTypeAttribute- Returns:
this
builder for use in a chained invocation
-
setType
Initializes the value for thetype
attribute.If not set, this attribute will have a default value as returned by the initializer of
type
.- Parameters:
type
- The value for type- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableReferenceEdge
.- Returns:
- An immutable instance of ReferenceEdge
- Throws:
IllegalStateException
- if any required attributes are missing
-