Package wavefront.report
Class Annotation.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<Annotation>
-
- wavefront.report.Annotation.Builder
-
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Annotation>
- Enclosing class:
- Annotation
public static class Annotation.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<Annotation> implements org.apache.avro.data.RecordBuilder<Annotation>
RecordBuilder for Annotation instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotationbuild()Annotation.BuilderclearKey()Clears the value of the 'key' field.Annotation.BuilderclearValue()Clears the value of the 'value' field.StringgetKey()Gets the value of the 'key' field.StringgetValue()Gets the value of the 'value' field.booleanhasKey()Checks whether the 'key' field has been set.booleanhasValue()Checks whether the 'value' field has been set.Annotation.BuildersetKey(String value)Sets the value of the 'key' field.Annotation.BuildersetValue(String value)Sets the value of the 'value' field.
-
-
-
Method Detail
-
getKey
public String getKey()
Gets the value of the 'key' field.- Returns:
- The value.
-
setKey
public Annotation.Builder setKey(String value)
Sets the value of the 'key' field.- Parameters:
value- The value of 'key'.- Returns:
- This builder.
-
hasKey
public boolean hasKey()
Checks whether the 'key' field has been set.- Returns:
- True if the 'key' field has been set, false otherwise.
-
clearKey
public Annotation.Builder clearKey()
Clears the value of the 'key' field.- Returns:
- This builder.
-
getValue
public String getValue()
Gets the value of the 'value' field.- Returns:
- The value.
-
setValue
public Annotation.Builder setValue(String value)
Sets the value of the 'value' field.- Parameters:
value- The value of 'value'.- Returns:
- This builder.
-
hasValue
public boolean hasValue()
Checks whether the 'value' field has been set.- Returns:
- True if the 'value' field has been set, false otherwise.
-
clearValue
public Annotation.Builder clearValue()
Clears the value of the 'value' field.- Returns:
- This builder.
-
build
public Annotation build()
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<Annotation>
-
-