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.Edgeinstance.from(ReferenceEdge instance) Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.ReferenceEdgeinstance.Initializes the value for thefromattribute.Initializes the value for thelabelattribute.setObjectTypeAttribute(ObjectTypeAttributeBean objectTypeAttribute) Initializes the value for theobjectTypeAttributeattribute.Initializes the value for thetoattribute.setType(ReferenceEdge.Type type) Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.Edgeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.riadalabs.jira.plugins.insight.services.model.graph.ReferenceEdgeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setFrom
Initializes the value for thefromattribute.- Parameters:
from- The value for from- Returns:
thisbuilder for use in a chained invocation
-
setTo
Initializes the value for thetoattribute.- Parameters:
to- The value for to- Returns:
thisbuilder for use in a chained invocation
-
setLabel
Initializes the value for thelabelattribute.- Parameters:
label- The value for label- Returns:
thisbuilder for use in a chained invocation
-
setObjectTypeAttribute
@CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setObjectTypeAttribute(ObjectTypeAttributeBean objectTypeAttribute) Initializes the value for theobjectTypeAttributeattribute.- Parameters:
objectTypeAttribute- The value for objectTypeAttribute- Returns:
thisbuilder for use in a chained invocation
-
setType
Initializes the value for thetypeattribute.If not set, this attribute will have a default value as returned by the initializer of
type.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableReferenceEdge.- Returns:
- An immutable instance of ReferenceEdge
- Throws:
IllegalStateException- if any required attributes are missing
-