public static class AbstractLispRecord.AbstractRecordBuilder<T> extends Object implements LispRecord.RecordBuilder<T>
| Modifier and Type | Field and Description |
|---|---|
protected LispMapReplyAction |
action |
protected boolean |
authoritative |
protected LispAfiAddress |
eidPrefixAfi |
protected short |
mapVersionNumber |
protected byte |
maskLength |
protected int |
recordTtl |
| Constructor and Description |
|---|
AbstractRecordBuilder() |
| Modifier and Type | Method and Description |
|---|---|
T |
withAction(LispMapReplyAction action)
Sets LISP map reply action enum.
|
T |
withEidPrefixAfi(LispAfiAddress prefix)
Sets EID prefix.
|
T |
withIsAuthoritative(boolean authoritative)
Sets authoritative flag.
|
T |
withMapVersionNumber(short mapVersionNumber)
Sets LISP map version number.
|
T |
withMaskLength(byte maskLength)
Sets mask length.
|
T |
withRecordTtl(int recordTtl)
Sets record TTL value.
|
protected int recordTtl
protected byte maskLength
protected LispMapReplyAction action
protected boolean authoritative
protected short mapVersionNumber
protected LispAfiAddress eidPrefixAfi
public T withRecordTtl(int recordTtl)
LispRecord.RecordBuilderwithRecordTtl in interface LispRecord.RecordBuilder<T>recordTtl - record TTLpublic T withMaskLength(byte maskLength)
LispRecord.RecordBuilderwithMaskLength in interface LispRecord.RecordBuilder<T>maskLength - mask lengthpublic T withAction(LispMapReplyAction action)
LispRecord.RecordBuilderwithAction in interface LispRecord.RecordBuilder<T>action - map reply actionpublic T withIsAuthoritative(boolean authoritative)
LispRecord.RecordBuilderwithIsAuthoritative in interface LispRecord.RecordBuilder<T>authoritative - authoritative flagpublic T withMapVersionNumber(short mapVersionNumber)
LispRecord.RecordBuilderwithMapVersionNumber in interface LispRecord.RecordBuilder<T>mapVersionNumber - map version numberpublic T withEidPrefixAfi(LispAfiAddress prefix)
LispRecord.RecordBuilderwithEidPrefixAfi in interface LispRecord.RecordBuilder<T>prefix - EID prefix