public static class ChoicePeriodDateTime.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<ChoicePeriodDateTime> implements org.apache.avro.data.RecordBuilder<ChoicePeriodDateTime>
Modifier and Type | Method and Description |
---|---|
ChoicePeriodDateTime |
build() |
ChoicePeriodDateTime.Builder |
clearDateTime()
Clears the value of the 'dateTime' field.
|
ChoicePeriodDateTime.Builder |
clearPeriod()
Clears the value of the 'period' field.
|
String |
getDateTime()
Gets the value of the 'dateTime' field.
|
Period |
getPeriod()
Gets the value of the 'period' field.
|
Period.Builder |
getPeriodBuilder()
Gets the Builder instance for the 'period' field and creates one if it doesn't exist yet.
|
boolean |
hasDateTime()
Checks whether the 'dateTime' field has been set.
|
boolean |
hasPeriod()
Checks whether the 'period' field has been set.
|
boolean |
hasPeriodBuilder()
Checks whether the 'period' field has an active Builder instance
Choice field
|
ChoicePeriodDateTime.Builder |
setDateTime(String value)
Sets the value of the 'dateTime' field.
|
ChoicePeriodDateTime.Builder |
setPeriod(Period value)
Sets the value of the 'period' field.
|
ChoicePeriodDateTime.Builder |
setPeriodBuilder(Period.Builder value)
Sets the Builder instance for the 'period' field
Choice field
|
public String getDateTime()
public ChoicePeriodDateTime.Builder setDateTime(String value)
value
- The value of 'dateTime'.public boolean hasDateTime()
public ChoicePeriodDateTime.Builder clearDateTime()
public Period getPeriod()
public ChoicePeriodDateTime.Builder setPeriod(Period value)
value
- The value of 'period'.public boolean hasPeriod()
public Period.Builder getPeriodBuilder()
public ChoicePeriodDateTime.Builder setPeriodBuilder(Period.Builder value)
value
- The builder instance that must be set.public boolean hasPeriodBuilder()
public ChoicePeriodDateTime.Builder clearPeriod()
public ChoicePeriodDateTime build()
build
in interface org.apache.avro.data.RecordBuilder<ChoicePeriodDateTime>
Copyright © 2020. All rights reserved.