Package net.corda.data.p2p.markers
Class AppMessageMarker.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class AppMessageMarker.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for AppMessageMarker instances.
-
-
Method Summary
Modifier and Type Method Description Object
getMarker()
Gets the value of the 'marker' field. AppMessageMarker.Builder
setMarker(Object value)
Sets the value of the 'marker' field. long
getTimestamp()
Gets the value of the 'timestamp' field. AppMessageMarker.Builder
setTimestamp(long value)
Sets the value of the 'timestamp' field. boolean
hasMarker()
Checks whether the 'marker' field has been set. AppMessageMarker.Builder
clearMarker()
Clears the value of the 'marker' field. boolean
hasTimestamp()
Checks whether the 'timestamp' field has been set. AppMessageMarker.Builder
clearTimestamp()
Clears the value of the 'timestamp' field. AppMessageMarker
build()
-
-
Method Detail
-
setMarker
AppMessageMarker.Builder setMarker(Object value)
Sets the value of the 'marker' field.
- Parameters:
value
- The value of 'marker'.- Returns:
This builder.
-
getTimestamp
long getTimestamp()
Gets the value of the 'timestamp' field. The timestamp when the status change happened.
- Returns:
The value.
-
setTimestamp
AppMessageMarker.Builder setTimestamp(long value)
Sets the value of the 'timestamp' field. The timestamp when the status change happened.
- Parameters:
value
- The value of 'timestamp'.- Returns:
This builder.
-
hasMarker
boolean hasMarker()
Checks whether the 'marker' field has been set.
- Returns:
True if the 'marker' field has been set, false otherwise.
-
clearMarker
AppMessageMarker.Builder clearMarker()
Clears the value of the 'marker' field.
- Returns:
This builder.
-
hasTimestamp
boolean hasTimestamp()
Checks whether the 'timestamp' field has been set. The timestamp when the status change happened.
- Returns:
True if the 'timestamp' field has been set, false otherwise.
-
clearTimestamp
AppMessageMarker.Builder clearTimestamp()
Clears the value of the 'timestamp' field. The timestamp when the status change happened.
- Returns:
This builder.
-
build
AppMessageMarker build()
-
-
-
-