Class ImmutableParentEdge.Builder

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

@NotThreadSafe public static final class ImmutableParentEdge.Builder extends Object
Builds instances of type 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.

  • Method Details

    • from

      @CanIgnoreReturnValue public final ImmutableParentEdge.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 ImmutableParentEdge.Builder from(ParentEdge instance)
      Fill a builder with attribute values from the provided com.riadalabs.jira.plugins.insight.services.model.graph.ParentEdge instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setFrom

      @CanIgnoreReturnValue public final ImmutableParentEdge.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 ImmutableParentEdge.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 ImmutableParentEdge.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
    • setInherited

      @CanIgnoreReturnValue public final ImmutableParentEdge.Builder setInherited(boolean inherited)
      Initializes the value for the inherited attribute.
      Parameters:
      inherited - The value for inherited
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableParentEdge build()
      Builds a new ImmutableParentEdge.
      Returns:
      An immutable instance of ParentEdge
      Throws:
      IllegalStateException - if any required attributes are missing