public static class AvroNamingAssignment.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<AvroNamingAssignment> implements org.apache.avro.data.RecordBuilder<AvroNamingAssignment>
Modifier and Type | Method and Description |
---|---|
AvroNamingAssignment |
build() |
AvroNamingAssignment.Builder |
clearHost()
Clears the value of the 'host' field.
|
AvroNamingAssignment.Builder |
clearId()
Clears the value of the 'id' field.
|
AvroNamingAssignment.Builder |
clearPort()
Clears the value of the 'port' field.
|
CharSequence |
getHost()
Gets the value of the 'host' field.
|
CharSequence |
getId()
Gets the value of the 'id' field.
|
Integer |
getPort()
Gets the value of the 'port' field.
|
boolean |
hasHost()
Checks whether the 'host' field has been set.
|
boolean |
hasId()
Checks whether the 'id' field has been set.
|
boolean |
hasPort()
Checks whether the 'port' field has been set.
|
AvroNamingAssignment.Builder |
setHost(CharSequence value)
Sets the value of the 'host' field.
|
AvroNamingAssignment.Builder |
setId(CharSequence value)
Sets the value of the 'id' field.
|
AvroNamingAssignment.Builder |
setPort(int value)
Sets the value of the 'port' field.
|
public CharSequence getId()
public AvroNamingAssignment.Builder setId(CharSequence value)
value
- The value of 'id'.public boolean hasId()
public AvroNamingAssignment.Builder clearId()
public CharSequence getHost()
public AvroNamingAssignment.Builder setHost(CharSequence value)
value
- The value of 'host'.public boolean hasHost()
public AvroNamingAssignment.Builder clearHost()
public AvroNamingAssignment.Builder setPort(int value)
value
- The value of 'port'.public boolean hasPort()
public AvroNamingAssignment.Builder clearPort()
public AvroNamingAssignment build()
build
in interface org.apache.avro.data.RecordBuilder<AvroNamingAssignment>
Copyright © 2017 The Apache Software Foundation. All rights reserved.