rippled
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
xrpl::ledger_entries::NegativeUNLBuilder Class Reference

Builder for NegativeUNL ledger entries. More...

#include <NegativeUNL.h>

Inheritance diagram for xrpl::ledger_entries::NegativeUNLBuilder:
Inheritance graph
[legend]
Collaboration diagram for xrpl::ledger_entries::NegativeUNLBuilder:
Collaboration graph
[legend]

Public Member Functions

 NegativeUNLBuilder ()
 Construct a new NegativeUNLBuilder with required fields.
 
 NegativeUNLBuilder (std::shared_ptr< SLE const > 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 Json::Value 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 ( std::shared_ptr< SLE const >  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()

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.