Package com.networknt.kafka.common
Class EventId.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<EventId>
-
- com.networknt.kafka.common.EventId.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventIdbuild()EventId.BuilderclearDerived()Clears the value of the 'derived' field.EventId.BuilderclearId()Clears the value of the 'id' field.EventId.BuilderclearNonce()Clears the value of the 'nonce' field.booleangetDerived()Gets the value of the 'derived' field.StringgetId()Gets the value of the 'id' field.longgetNonce()Gets the value of the 'nonce' field.booleanhasDerived()Checks whether the 'derived' field has been set.booleanhasId()Checks whether the 'id' field has been set.booleanhasNonce()Checks whether the 'nonce' field has been set.EventId.BuildersetDerived(boolean value)Sets the value of the 'derived' field.EventId.BuildersetId(String value)Sets the value of the 'id' field.EventId.BuildersetNonce(long value)Sets the value of the 'nonce' field.
-
-
-
Method Detail
-
getId
public String getId()
Gets the value of the 'id' field. a unique identifier- Returns:
- The value.
-
setId
public EventId.Builder setId(String value)
Sets the value of the 'id' field. a unique identifier- Parameters:
value- The value of 'id'.- Returns:
- This builder.
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set. a unique identifier- Returns:
- True if the 'id' field has been set, false otherwise.
-
clearId
public EventId.Builder clearId()
Clears the value of the 'id' field. a unique identifier- Returns:
- This builder.
-
getNonce
public long getNonce()
Gets the value of the 'nonce' field. the number of the transactions for the user- Returns:
- The value.
-
setNonce
public EventId.Builder setNonce(long value)
Sets the value of the 'nonce' field. the number of the transactions for the user- Parameters:
value- The value of 'nonce'.- Returns:
- This builder.
-
hasNonce
public boolean hasNonce()
Checks whether the 'nonce' field has been set. the number of the transactions for the user- Returns:
- True if the 'nonce' field has been set, false otherwise.
-
clearNonce
public EventId.Builder clearNonce()
Clears the value of the 'nonce' field. the number of the transactions for the user- Returns:
- This builder.
-
getDerived
public boolean getDerived()
Gets the value of the 'derived' field. indicate if the event is derived from event processor- Returns:
- The value.
-
setDerived
public EventId.Builder setDerived(boolean value)
Sets the value of the 'derived' field. indicate if the event is derived from event processor- Parameters:
value- The value of 'derived'.- Returns:
- This builder.
-
hasDerived
public boolean hasDerived()
Checks whether the 'derived' field has been set. indicate if the event is derived from event processor- Returns:
- True if the 'derived' field has been set, false otherwise.
-
clearDerived
public EventId.Builder clearDerived()
Clears the value of the 'derived' field. indicate if the event is derived from event processor- Returns:
- This builder.
-
-