Class ImmutableXChainBridge.Builder

java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableXChainBridge.Builder
Enclosing class:
ImmutableXChainBridge

@NotThreadSafe public static final class ImmutableXChainBridge.Builder extends Object
Builds instances of type ImmutableXChainBridge. 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 ImmutableXChainBridge.Builder from(XChainBridge instance)
      Fill a builder with attribute values from the provided XChainBridge instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • issuingChainDoor

      @CanIgnoreReturnValue public final ImmutableXChainBridge.Builder issuingChainDoor(Address issuingChainDoor)
      Initializes the value for the issuingChainDoor attribute.
      Parameters:
      issuingChainDoor - The value for issuingChainDoor
      Returns:
      this builder for use in a chained invocation
    • issuingChainIssue

      @CanIgnoreReturnValue public final ImmutableXChainBridge.Builder issuingChainIssue(Issue issuingChainIssue)
      Initializes the value for the issuingChainIssue attribute.
      Parameters:
      issuingChainIssue - The value for issuingChainIssue
      Returns:
      this builder for use in a chained invocation
    • lockingChainDoor

      @CanIgnoreReturnValue public final ImmutableXChainBridge.Builder lockingChainDoor(Address lockingChainDoor)
      Initializes the value for the lockingChainDoor attribute.
      Parameters:
      lockingChainDoor - The value for lockingChainDoor
      Returns:
      this builder for use in a chained invocation
    • lockingChainIssue

      @CanIgnoreReturnValue public final ImmutableXChainBridge.Builder lockingChainIssue(Issue lockingChainIssue)
      Initializes the value for the lockingChainIssue attribute.
      Parameters:
      lockingChainIssue - The value for lockingChainIssue
      Returns:
      this builder for use in a chained invocation
    • build

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