Class EntityResponse.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class EntityResponse.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for EntityResponse instances.
-
-
Field Summary
Fields Modifier and Type Field Description public List<ByteBuffer>
results
public KeyValuePairList
metadata
public KeyValuePairList.Builder
metadataBuilder
public ByteBuffer
resumePoint
-
Method Summary
Modifier and Type Method Description List<ByteBuffer>
getResults()
Gets the value of the 'results' field. EntityResponse.Builder
setResults(List<ByteBuffer> value)
Sets the value of the 'results' field. KeyValuePairList
getMetadata()
Gets the value of the 'metadata' field. EntityResponse.Builder
setMetadata(KeyValuePairList value)
Sets the value of the 'metadata' field. KeyValuePairList.Builder
getMetadataBuilder()
Gets the Builder instance for the 'metadata' field and creates one if it doesn't exist yet. EntityResponse.Builder
setMetadataBuilder(KeyValuePairList.Builder value)
Sets the Builder instance for the 'metadata' field Metadata returned from the execution of the persistence operation ByteBuffer
getResumePoint()
Gets the value of the 'resumePoint' field. EntityResponse.Builder
setResumePoint(ByteBuffer value)
Sets the value of the 'resumePoint' field. boolean
hasResults()
Checks whether the 'results' field has been set. EntityResponse.Builder
clearResults()
Clears the value of the 'results' field. boolean
hasMetadata()
Checks whether the 'metadata' field has been set. boolean
hasMetadataBuilder()
Checks whether the 'metadata' field has an active Builder instance Metadata returned from the execution of the persistence operation EntityResponse.Builder
clearMetadata()
Clears the value of the 'metadata' field. boolean
hasResumePoint()
Checks whether the 'resumePoint' field has been set. EntityResponse.Builder
clearResumePoint()
Clears the value of the 'resumePoint' field. EntityResponse
build()
-
-
Method Detail
-
getResults
List<ByteBuffer> getResults()
Gets the value of the 'results' field. Result of request, as a list of AMQP-formatted user defined objects, which may be empty or have 1 element for certain persistence operations
- Returns:
The value.
-
setResults
EntityResponse.Builder setResults(List<ByteBuffer> value)
Sets the value of the 'results' field. Result of request, as a list of AMQP-formatted user defined objects, which may be empty or have 1 element for certain persistence operations
- Parameters:
value
- The value of 'results'.- Returns:
This builder.
-
getMetadata
KeyValuePairList getMetadata()
Gets the value of the 'metadata' field. Metadata returned from the execution of the persistence operation
- Returns:
The value.
-
setMetadata
EntityResponse.Builder setMetadata(KeyValuePairList value)
Sets the value of the 'metadata' field. Metadata returned from the execution of the persistence operation
- Parameters:
value
- The value of 'metadata'.- Returns:
This builder.
-
getMetadataBuilder
KeyValuePairList.Builder getMetadataBuilder()
Gets the Builder instance for the 'metadata' field and creates one if it doesn't exist yet. Metadata returned from the execution of the persistence operation
- Returns:
This builder.
-
setMetadataBuilder
EntityResponse.Builder setMetadataBuilder(KeyValuePairList.Builder value)
Sets the Builder instance for the 'metadata' field Metadata returned from the execution of the persistence operation
- Parameters:
value
- The builder instance that must be set.- Returns:
This builder.
-
getResumePoint
ByteBuffer getResumePoint()
Gets the value of the 'resumePoint' field. Used by queries that support stable paging to return opaque data that indicates where the next page should resume from
- Returns:
The value.
-
setResumePoint
EntityResponse.Builder setResumePoint(ByteBuffer value)
Sets the value of the 'resumePoint' field. Used by queries that support stable paging to return opaque data that indicates where the next page should resume from
- Parameters:
value
- The value of 'resumePoint'.- Returns:
This builder.
-
hasResults
boolean hasResults()
Checks whether the 'results' field has been set. Result of request, as a list of AMQP-formatted user defined objects, which may be empty or have 1 element for certain persistence operations
- Returns:
True if the 'results' field has been set, false otherwise.
-
clearResults
EntityResponse.Builder clearResults()
Clears the value of the 'results' field. Result of request, as a list of AMQP-formatted user defined objects, which may be empty or have 1 element for certain persistence operations
- Returns:
This builder.
-
hasMetadata
boolean hasMetadata()
Checks whether the 'metadata' field has been set. Metadata returned from the execution of the persistence operation
- Returns:
True if the 'metadata' field has been set, false otherwise.
-
hasMetadataBuilder
boolean hasMetadataBuilder()
Checks whether the 'metadata' field has an active Builder instance Metadata returned from the execution of the persistence operation
- Returns:
True if the 'metadata' field has an active Builder instance
-
clearMetadata
EntityResponse.Builder clearMetadata()
Clears the value of the 'metadata' field. Metadata returned from the execution of the persistence operation
- Returns:
This builder.
-
hasResumePoint
boolean hasResumePoint()
Checks whether the 'resumePoint' field has been set. Used by queries that support stable paging to return opaque data that indicates where the next page should resume from
- Returns:
True if the 'resumePoint' field has been set, false otherwise.
-
clearResumePoint
EntityResponse.Builder clearResumePoint()
Clears the value of the 'resumePoint' field. Used by queries that support stable paging to return opaque data that indicates where the next page should resume from
- Returns:
This builder.
-
build
EntityResponse build()
-
-
-
-