Class LedgerPersistenceRequest.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class LedgerPersistenceRequest.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for LedgerPersistenceRequest instances.
-
-
Field Summary
Fields Modifier and Type Field Description public Instant
timestamp
public HoldingIdentity
holdingIdentity
public HoldingIdentity.Builder
holdingIdentityBuilder
public LedgerTypes
ledgerType
public Object
request
public ExternalEventContext
flowExternalEventContext
public ExternalEventContext.Builder
flowExternalEventContextBuilder
-
Method Summary
Modifier and Type Method Description Instant
getTimestamp()
Gets the value of the 'timestamp' field. LedgerPersistenceRequest.Builder
setTimestamp(Instant value)
Sets the value of the 'timestamp' field. HoldingIdentity
getHoldingIdentity()
Gets the value of the 'holdingIdentity' field. LedgerPersistenceRequest.Builder
setHoldingIdentity(HoldingIdentity value)
Sets the value of the 'holdingIdentity' field. HoldingIdentity.Builder
getHoldingIdentityBuilder()
Gets the Builder instance for the 'holdingIdentity' field and creates one if it doesn't exist yet. LedgerPersistenceRequest.Builder
setHoldingIdentityBuilder(HoldingIdentity.Builder value)
Sets the Builder instance for the 'holdingIdentity' field The holding identity of the user making the DB request. LedgerTypes
getLedgerType()
Gets the value of the 'ledgerType' field. LedgerPersistenceRequest.Builder
setLedgerType(LedgerTypes value)
Sets the value of the 'ledgerType' field. Object
getRequest()
Gets the value of the 'request' field. LedgerPersistenceRequest.Builder
setRequest(Object value)
Sets the value of the 'request' field. ExternalEventContext
getFlowExternalEventContext()
Gets the value of the 'flowExternalEventContext' field. LedgerPersistenceRequest.Builder
setFlowExternalEventContext(ExternalEventContext value)
Sets the value of the 'flowExternalEventContext' field. ExternalEventContext.Builder
getFlowExternalEventContextBuilder()
Gets the Builder instance for the 'flowExternalEventContext' field and creates one if it doesn't exist yet. LedgerPersistenceRequest.Builder
setFlowExternalEventContextBuilder(ExternalEventContext.Builder value)
Sets the Builder instance for the 'flowExternalEventContext' field The context of the external event that this request was sent from. boolean
hasTimestamp()
Checks whether the 'timestamp' field has been set. LedgerPersistenceRequest.Builder
clearTimestamp()
Clears the value of the 'timestamp' field. boolean
hasHoldingIdentity()
Checks whether the 'holdingIdentity' field has been set. boolean
hasHoldingIdentityBuilder()
Checks whether the 'holdingIdentity' field has an active Builder instance The holding identity of the user making the DB request. LedgerPersistenceRequest.Builder
clearHoldingIdentity()
Clears the value of the 'holdingIdentity' field. boolean
hasLedgerType()
Checks whether the 'ledgerType' field has been set. LedgerPersistenceRequest.Builder
clearLedgerType()
Clears the value of the 'ledgerType' field. boolean
hasRequest()
Checks whether the 'request' field has been set. LedgerPersistenceRequest.Builder
clearRequest()
Clears the value of the 'request' field. boolean
hasFlowExternalEventContext()
Checks whether the 'flowExternalEventContext' field has been set. boolean
hasFlowExternalEventContextBuilder()
Checks whether the 'flowExternalEventContext' field has an active Builder instance The context of the external event that this request was sent from. LedgerPersistenceRequest.Builder
clearFlowExternalEventContext()
Clears the value of the 'flowExternalEventContext' field. LedgerPersistenceRequest
build()
-
-
Method Detail
-
getTimestamp
Instant getTimestamp()
Gets the value of the 'timestamp' field. Time (java.time.Instant) in milliseconds when the record was created.
-
setTimestamp
LedgerPersistenceRequest.Builder setTimestamp(Instant value)
Sets the value of the 'timestamp' field. Time (java.time.Instant) in milliseconds when the record was created.
- Parameters:
value
- The value of 'timestamp'.
-
getHoldingIdentity
HoldingIdentity getHoldingIdentity()
Gets the value of the 'holdingIdentity' field. The holding identity of the user making the DB request.
-
setHoldingIdentity
LedgerPersistenceRequest.Builder setHoldingIdentity(HoldingIdentity value)
Sets the value of the 'holdingIdentity' field. The holding identity of the user making the DB request.
- Parameters:
value
- The value of 'holdingIdentity'.
-
getHoldingIdentityBuilder
HoldingIdentity.Builder getHoldingIdentityBuilder()
Gets the Builder instance for the 'holdingIdentity' field and creates one if it doesn't exist yet. The holding identity of the user making the DB request.
-
setHoldingIdentityBuilder
LedgerPersistenceRequest.Builder setHoldingIdentityBuilder(HoldingIdentity.Builder value)
Sets the Builder instance for the 'holdingIdentity' field The holding identity of the user making the DB request.
- Parameters:
value
- The builder instance that must be set.
-
getLedgerType
LedgerTypes getLedgerType()
Gets the value of the 'ledgerType' field. The type of ledger the request is for.
-
setLedgerType
LedgerPersistenceRequest.Builder setLedgerType(LedgerTypes value)
Sets the value of the 'ledgerType' field. The type of ledger the request is for.
- Parameters:
value
- The value of 'ledgerType'.
-
getRequest
Object getRequest()
Gets the value of the 'request' field. The 'request' that we wish to make to the ledger persistence API.
-
setRequest
LedgerPersistenceRequest.Builder setRequest(Object value)
Sets the value of the 'request' field. The 'request' that we wish to make to the ledger persistence API.
- Parameters:
value
- The value of 'request'.
-
getFlowExternalEventContext
ExternalEventContext getFlowExternalEventContext()
Gets the value of the 'flowExternalEventContext' field. The context of the external event that this request was sent from.
-
setFlowExternalEventContext
LedgerPersistenceRequest.Builder setFlowExternalEventContext(ExternalEventContext value)
Sets the value of the 'flowExternalEventContext' field. The context of the external event that this request was sent from.
- Parameters:
value
- The value of 'flowExternalEventContext'.
-
getFlowExternalEventContextBuilder
ExternalEventContext.Builder getFlowExternalEventContextBuilder()
Gets the Builder instance for the 'flowExternalEventContext' field and creates one if it doesn't exist yet. The context of the external event that this request was sent from.
-
setFlowExternalEventContextBuilder
LedgerPersistenceRequest.Builder setFlowExternalEventContextBuilder(ExternalEventContext.Builder value)
Sets the Builder instance for the 'flowExternalEventContext' field The context of the external event that this request was sent from.
- Parameters:
value
- The builder instance that must be set.
-
hasTimestamp
boolean hasTimestamp()
Checks whether the 'timestamp' field has been set. Time (java.time.Instant) in milliseconds when the record was created.
-
clearTimestamp
LedgerPersistenceRequest.Builder clearTimestamp()
Clears the value of the 'timestamp' field. Time (java.time.Instant) in milliseconds when the record was created.
-
hasHoldingIdentity
boolean hasHoldingIdentity()
Checks whether the 'holdingIdentity' field has been set. The holding identity of the user making the DB request.
-
hasHoldingIdentityBuilder
boolean hasHoldingIdentityBuilder()
Checks whether the 'holdingIdentity' field has an active Builder instance The holding identity of the user making the DB request.
-
clearHoldingIdentity
LedgerPersistenceRequest.Builder clearHoldingIdentity()
Clears the value of the 'holdingIdentity' field. The holding identity of the user making the DB request.
-
hasLedgerType
boolean hasLedgerType()
Checks whether the 'ledgerType' field has been set. The type of ledger the request is for.
-
clearLedgerType
LedgerPersistenceRequest.Builder clearLedgerType()
Clears the value of the 'ledgerType' field. The type of ledger the request is for.
-
hasRequest
boolean hasRequest()
Checks whether the 'request' field has been set. The 'request' that we wish to make to the ledger persistence API.
-
clearRequest
LedgerPersistenceRequest.Builder clearRequest()
Clears the value of the 'request' field. The 'request' that we wish to make to the ledger persistence API.
-
hasFlowExternalEventContext
boolean hasFlowExternalEventContext()
Checks whether the 'flowExternalEventContext' field has been set. The context of the external event that this request was sent from.
-
hasFlowExternalEventContextBuilder
boolean hasFlowExternalEventContextBuilder()
Checks whether the 'flowExternalEventContext' field has an active Builder instance The context of the external event that this request was sent from.
-
clearFlowExternalEventContext
LedgerPersistenceRequest.Builder clearFlowExternalEventContext()
Clears the value of the 'flowExternalEventContext' field. The context of the external event that this request was sent from.
-
build
LedgerPersistenceRequest build()
-
-
-
-