Class ImmutableReferenceEdge.Builder

java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.graph.ImmutableReferenceEdge.Builder
Enclosing class:
ImmutableReferenceEdge

@NotThreadSafe public static final class ImmutableReferenceEdge.Builder extends Object
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 Details

    • from

      @CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder from(Edge instance)
      Fill a builder with attribute values from the provided com.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

      @CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder from(ReferenceEdge instance)
      Fill a builder with attribute values from the provided com.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

      @CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setFrom(String from)
      Initializes the value for the from attribute.
      Parameters:
      from - The value for from
      Returns:
      this builder for use in a chained invocation
    • setTo

      @CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setTo(String to)
      Initializes the value for the to attribute.
      Parameters:
      to - The value for to
      Returns:
      this builder for use in a chained invocation
    • setLabel

      @CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setLabel(String label)
      Initializes the value for the label 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 the objectTypeAttribute attribute.
      Parameters:
      objectTypeAttribute - The value for objectTypeAttribute
      Returns:
      this builder for use in a chained invocation
    • setType

      @CanIgnoreReturnValue public final ImmutableReferenceEdge.Builder setType(ReferenceEdge.Type type)
      Initializes the value for the type 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

      public ImmutableReferenceEdge build()
      Returns:
      An immutable instance of ReferenceEdge
      Throws:
      IllegalStateException - if any required attributes are missing