public static class ChoiceQuantityRange.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<ChoiceQuantityRange> implements org.apache.avro.data.RecordBuilder<ChoiceQuantityRange>
Modifier and Type | Method and Description |
---|---|
ChoiceQuantityRange |
build() |
ChoiceQuantityRange.Builder |
clearQuantity()
Clears the value of the 'quantity' field.
|
ChoiceQuantityRange.Builder |
clearRange()
Clears the value of the 'range' field.
|
Quantity |
getQuantity()
Gets the value of the 'quantity' field.
|
Quantity.Builder |
getQuantityBuilder()
Gets the Builder instance for the 'quantity' field and creates one if it doesn't exist yet.
|
Range |
getRange()
Gets the value of the 'range' field.
|
Range.Builder |
getRangeBuilder()
Gets the Builder instance for the 'range' field and creates one if it doesn't exist yet.
|
boolean |
hasQuantity()
Checks whether the 'quantity' field has been set.
|
boolean |
hasQuantityBuilder()
Checks whether the 'quantity' field has an active Builder instance
Choice field
|
boolean |
hasRange()
Checks whether the 'range' field has been set.
|
boolean |
hasRangeBuilder()
Checks whether the 'range' field has an active Builder instance
Choice field
|
ChoiceQuantityRange.Builder |
setQuantity(Quantity value)
Sets the value of the 'quantity' field.
|
ChoiceQuantityRange.Builder |
setQuantityBuilder(Quantity.Builder value)
Sets the Builder instance for the 'quantity' field
Choice field
|
ChoiceQuantityRange.Builder |
setRange(Range value)
Sets the value of the 'range' field.
|
ChoiceQuantityRange.Builder |
setRangeBuilder(Range.Builder value)
Sets the Builder instance for the 'range' field
Choice field
|
public Range getRange()
public ChoiceQuantityRange.Builder setRange(Range value)
value
- The value of 'range'.public boolean hasRange()
public Range.Builder getRangeBuilder()
public ChoiceQuantityRange.Builder setRangeBuilder(Range.Builder value)
value
- The builder instance that must be set.public boolean hasRangeBuilder()
public ChoiceQuantityRange.Builder clearRange()
public Quantity getQuantity()
public ChoiceQuantityRange.Builder setQuantity(Quantity value)
value
- The value of 'quantity'.public boolean hasQuantity()
public Quantity.Builder getQuantityBuilder()
public ChoiceQuantityRange.Builder setQuantityBuilder(Quantity.Builder value)
value
- The builder instance that must be set.public boolean hasQuantityBuilder()
public ChoiceQuantityRange.Builder clearQuantity()
public ChoiceQuantityRange build()
build
in interface org.apache.avro.data.RecordBuilder<ChoiceQuantityRange>
Copyright © 2020. All rights reserved.