Class Status.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<Status>
org.springframework.cloud.stream.samples.Status.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Status>
- Enclosing class:
- Status
public static class Status.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<Status>
implements org.apache.avro.data.RecordBuilder<Status>
RecordBuilder for Status instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()clearId()Clears the value of the 'id' field.Clears the value of the 'text' field.Clears the value of the 'timestamp' field.getId()Gets the value of the 'id' field.getText()Gets the value of the 'text' field.longGets the value of the 'timestamp' field.booleanhasId()Checks whether the 'id' field has been set.booleanhasText()Checks whether the 'text' field has been set.booleanChecks whether the 'timestamp' field has been set.setId(CharSequence value) Sets the value of the 'id' field.setText(CharSequence value) Sets the value of the 'text' field.setTimestamp(long value) Sets the value of the 'timestamp' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getId
Gets the value of the 'id' field.- Returns:
- The value.
-
setId
Sets the value of the 'id' field.- Parameters:
value- The value of 'id'.- Returns:
- This builder.
-
hasId
public boolean hasId()Checks whether the 'id' field has been set.- Returns:
- True if the 'id' field has been set, false otherwise.
-
clearId
Clears the value of the 'id' field.- Returns:
- This builder.
-
getText
Gets the value of the 'text' field.- Returns:
- The value.
-
setText
Sets the value of the 'text' field.- Parameters:
value- The value of 'text'.- Returns:
- This builder.
-
hasText
public boolean hasText()Checks whether the 'text' field has been set.- Returns:
- True if the 'text' field has been set, false otherwise.
-
clearText
Clears the value of the 'text' field.- Returns:
- This builder.
-
getTimestamp
public long getTimestamp()Gets the value of the 'timestamp' field.- Returns:
- The value.
-
setTimestamp
Sets the value of the 'timestamp' field.- Parameters:
value- The value of 'timestamp'.- Returns:
- This builder.
-
hasTimestamp
public boolean hasTimestamp()Checks whether the 'timestamp' field has been set.- Returns:
- True if the 'timestamp' field has been set, false otherwise.
-
clearTimestamp
Clears the value of the 'timestamp' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<Status>
-