Package example.avro
Class PushNotification.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<PushNotification>
example.avro.PushNotification.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<PushNotification>
- Enclosing class:
- PushNotification
public static class PushNotification.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<PushNotification>
implements org.apache.avro.data.RecordBuilder<PushNotification>
RecordBuilder for PushNotification instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()clearArn()Clears the value of the 'arn' field.Clears the value of the 'text' field.getArn()Gets the value of the 'arn' field.getText()Gets the value of the 'text' field.booleanhasArn()Checks whether the 'arn' field has been set.booleanhasText()Checks whether the 'text' field has been set.setArn(CharSequence value) Sets the value of the 'arn' field.setText(CharSequence value) Sets the value of the 'text' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getArn
Gets the value of the 'arn' field.- Returns:
- The value.
-
setArn
Sets the value of the 'arn' field.- Parameters:
value- The value of 'arn'.- Returns:
- This builder.
-
hasArn
public boolean hasArn()Checks whether the 'arn' field has been set.- Returns:
- True if the 'arn' field has been set, false otherwise.
-
clearArn
Clears the value of the 'arn' 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.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<PushNotification>
-