Class ImmutableBridgeObject.Builder

java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableBridgeObject.Builder
Enclosing class:
ImmutableBridgeObject

@NotThreadSafe public static final class ImmutableBridgeObject.Builder extends Object
Builds instances of type ImmutableBridgeObject. 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 ImmutableBridgeObject.Builder from(BridgeObject instance)
      Fill a builder with attribute values from the provided BridgeObject 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
    • account

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

      @CanIgnoreReturnValue public final ImmutableBridgeObject.Builder minAccountCreateAmount(XrpCurrencyAmount minAccountCreateAmount)
      Initializes the optional value minAccountCreateAmount to minAccountCreateAmount.
      Parameters:
      minAccountCreateAmount - The value for minAccountCreateAmount
      Returns:
      this builder for chained invocation
    • minAccountCreateAmount

      @CanIgnoreReturnValue public final ImmutableBridgeObject.Builder minAccountCreateAmount(Optional<? extends XrpCurrencyAmount> minAccountCreateAmount)
      Initializes the optional value minAccountCreateAmount to minAccountCreateAmount.
      Parameters:
      minAccountCreateAmount - The value for minAccountCreateAmount
      Returns:
      this builder for use in a chained invocation
    • signatureReward

      @CanIgnoreReturnValue public final ImmutableBridgeObject.Builder signatureReward(XrpCurrencyAmount signatureReward)
      Initializes the value for the signatureReward attribute.
      Parameters:
      signatureReward - The value for signatureReward
      Returns:
      this builder for use in a chained invocation
    • xChainBridge

      @CanIgnoreReturnValue public final ImmutableBridgeObject.Builder xChainBridge(XChainBridge xChainBridge)
      Initializes the value for the xChainBridge attribute.
      Parameters:
      xChainBridge - The value for xChainBridge
      Returns:
      this builder for use in a chained invocation
    • xChainClaimId

      @CanIgnoreReturnValue public final ImmutableBridgeObject.Builder xChainClaimId(XChainClaimId xChainClaimId)
      Initializes the value for the xChainClaimId attribute.
      Parameters:
      xChainClaimId - The value for xChainClaimId
      Returns:
      this builder for use in a chained invocation
    • xChainAccountCreateCount

      @CanIgnoreReturnValue public final ImmutableBridgeObject.Builder xChainAccountCreateCount(XChainCount xChainAccountCreateCount)
      Initializes the value for the xChainAccountCreateCount attribute.
      Parameters:
      xChainAccountCreateCount - The value for xChainAccountCreateCount
      Returns:
      this builder for use in a chained invocation
    • xChainAccountClaimCount

      @CanIgnoreReturnValue public final ImmutableBridgeObject.Builder xChainAccountClaimCount(XChainCount xChainAccountClaimCount)
      Initializes the value for the xChainAccountClaimCount attribute.
      Parameters:
      xChainAccountClaimCount - The value for xChainAccountClaimCount
      Returns:
      this builder for use in a chained invocation
    • ownerNode

      @CanIgnoreReturnValue public final ImmutableBridgeObject.Builder ownerNode(String ownerNode)
      Initializes the value for the ownerNode attribute.
      Parameters:
      ownerNode - The value for ownerNode
      Returns:
      this builder for use in a chained invocation
    • previousTransactionId

      @CanIgnoreReturnValue public final ImmutableBridgeObject.Builder previousTransactionId(Hash256 previousTransactionId)
      Initializes the value for the previousTransactionId attribute.
      Parameters:
      previousTransactionId - The value for previousTransactionId
      Returns:
      this builder for use in a chained invocation
    • previousTransactionLedgerSequence

      @CanIgnoreReturnValue public final ImmutableBridgeObject.Builder previousTransactionLedgerSequence(com.google.common.primitives.UnsignedInteger previousTransactionLedgerSequence)
      Initializes the value for the previousTransactionLedgerSequence attribute.
      Parameters:
      previousTransactionLedgerSequence - The value for previousTransactionLedgerSequence
      Returns:
      this builder for use in a chained invocation
    • index

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

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