xrpld
Loading...
Searching...
No Matches
xrpl::ledger_entries::NegativeUNLBuilder Class Reference

Builder for NegativeUNL ledger entries. More...

#include <NegativeUNL.h>

Inheritance diagram for xrpl::ledger_entries::NegativeUNLBuilder:
Collaboration diagram for xrpl::ledger_entries::NegativeUNLBuilder:

Public Member Functions

 NegativeUNLBuilder ()
 Construct a new NegativeUNLBuilder with required fields.
 NegativeUNLBuilder (SLE::const_pointer sle)
 Construct a NegativeUNLBuilder from an existing SLE object.
NegativeUNLBuildersetDisabledValidators (STArray const &value)
 Ledger entry-specific field setters.
NegativeUNLBuildersetValidatorToDisable (std::decay_t< typename SF_VL::type::value_type > const &value)
 Set sfValidatorToDisable (SoeOptional).
NegativeUNLBuildersetValidatorToReEnable (std::decay_t< typename SF_VL::type::value_type > const &value)
 Set sfValidatorToReEnable (SoeOptional).
NegativeUNLBuildersetPreviousTxnID (std::decay_t< typename SF_UINT256::type::value_type > const &value)
 Set sfPreviousTxnID (SoeOptional).
NegativeUNLBuildersetPreviousTxnLgrSeq (std::decay_t< typename SF_UINT32::type::value_type > const &value)
 Set sfPreviousTxnLgrSeq (SoeOptional).
NegativeUNL build (uint256 const &index)
 Build and return the completed NegativeUNL wrapper.
bool validate () const
 Validate the ledger entry.
NegativeUNLBuildersetLedgerIndex (uint256 const &value)
 Set the ledger index.
NegativeUNLBuildersetFlags (uint32_t value)
 Set the flags.

Protected Attributes

STObject object_

Detailed Description

Builder for NegativeUNL ledger entries.

Provides a fluent interface for constructing ledger entries with method chaining. Uses STObject internally for flexible ledger entry construction. Inherits common field setters from LedgerEntryBuilderBase.

Definition at line 177 of file NegativeUNL.h.

Constructor & Destructor Documentation

◆ NegativeUNLBuilder() [1/2]

xrpl::ledger_entries::NegativeUNLBuilder::NegativeUNLBuilder ( )

Construct a new NegativeUNLBuilder with required fields.

Definition at line 183 of file NegativeUNL.h.

◆ NegativeUNLBuilder() [2/2]

xrpl::ledger_entries::NegativeUNLBuilder::NegativeUNLBuilder ( SLE::const_pointer sle)

Construct a NegativeUNLBuilder from an existing SLE object.

Parameters
sleThe existing ledger entry to copy from.
Exceptions
std::runtime_errorif the ledger entry type doesn't match.

Definition at line 193 of file NegativeUNL.h.

Member Function Documentation

◆ setDisabledValidators()

NegativeUNLBuilder & xrpl::ledger_entries::NegativeUNLBuilder::setDisabledValidators ( STArray const & value)

Ledger entry-specific field setters.

Set sfDisabledValidators (SoeOptional)

Returns
Reference to this builder for method chaining.

Definition at line 209 of file NegativeUNL.h.

◆ setValidatorToDisable()

NegativeUNLBuilder & xrpl::ledger_entries::NegativeUNLBuilder::setValidatorToDisable ( std::decay_t< typename SF_VL::type::value_type > const & value)

Set sfValidatorToDisable (SoeOptional).

Returns
Reference to this builder for method chaining.

Definition at line 220 of file NegativeUNL.h.

◆ setValidatorToReEnable()

NegativeUNLBuilder & xrpl::ledger_entries::NegativeUNLBuilder::setValidatorToReEnable ( std::decay_t< typename SF_VL::type::value_type > const & value)

Set sfValidatorToReEnable (SoeOptional).

Returns
Reference to this builder for method chaining.

Definition at line 231 of file NegativeUNL.h.

◆ setPreviousTxnID()

NegativeUNLBuilder & xrpl::ledger_entries::NegativeUNLBuilder::setPreviousTxnID ( std::decay_t< typename SF_UINT256::type::value_type > const & value)

Set sfPreviousTxnID (SoeOptional).

Returns
Reference to this builder for method chaining.

Definition at line 242 of file NegativeUNL.h.

◆ setPreviousTxnLgrSeq()

NegativeUNLBuilder & xrpl::ledger_entries::NegativeUNLBuilder::setPreviousTxnLgrSeq ( std::decay_t< typename SF_UINT32::type::value_type > const & value)

Set sfPreviousTxnLgrSeq (SoeOptional).

Returns
Reference to this builder for method chaining.

Definition at line 253 of file NegativeUNL.h.

◆ build()

NegativeUNL xrpl::ledger_entries::NegativeUNLBuilder::build ( uint256 const & index)

Build and return the completed NegativeUNL wrapper.

Parameters
indexThe ledger entry index.
Returns
The constructed ledger entry wrapper.

Definition at line 265 of file NegativeUNL.h.

◆ validate()

bool xrpl::ledger_entries::LedgerEntryBuilderBase< NegativeUNLBuilder >::validate ( ) const
nodiscardinherited

Validate the ledger entry.

Returns
true if validation passes, false otherwise

Definition at line 45 of file LedgerEntryBuilderBase.h.

◆ setLedgerIndex()

Set the ledger index.

Parameters
valueLedger index
Returns
Reference to the derived builder for method chaining.

Definition at line 62 of file LedgerEntryBuilderBase.h.

◆ setFlags()

Set the flags.

Parameters
valueFlags value
Returns
Reference to the derived builder for method chaining.

Definition at line 74 of file LedgerEntryBuilderBase.h.

Member Data Documentation

◆ object_

Definition at line 81 of file LedgerEntryBuilderBase.h.