Interface GetSparqlStreamResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSparqlStreamResponse.Builder,GetSparqlStreamResponse>,NeptunedataResponse.Builder,SdkBuilder<GetSparqlStreamResponse.Builder,GetSparqlStreamResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetSparqlStreamResponse
public static interface GetSparqlStreamResponse.Builder extends NeptunedataResponse.Builder, SdkPojo, CopyableBuilder<GetSparqlStreamResponse.Builder,GetSparqlStreamResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetSparqlStreamResponse.Builderformat(String format)Serialization format for the change records being returned.GetSparqlStreamResponse.BuilderlastEventId(Map<String,String> lastEventId)Sequence identifier of the last change in the stream response.GetSparqlStreamResponse.BuilderlastTrxTimestampInMillis(Long lastTrxTimestampInMillis)The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.GetSparqlStreamResponse.Builderrecords(Collection<SparqlRecord> records)An array of serialized change-log stream records included in the response.GetSparqlStreamResponse.Builderrecords(Consumer<SparqlRecord.Builder>... records)An array of serialized change-log stream records included in the response.GetSparqlStreamResponse.Builderrecords(SparqlRecord... records)An array of serialized change-log stream records included in the response.GetSparqlStreamResponse.BuildertotalRecords(Integer totalRecords)The total number of records in the response.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.neptunedata.model.NeptunedataResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
lastEventId
GetSparqlStreamResponse.Builder lastEventId(Map<String,String> lastEventId)
Sequence identifier of the last change in the stream response.
An event ID is composed of two fields: a
commitNum, which identifies a transaction that changed the graph, and anopNum, which identifies a specific operation within that transaction:- Parameters:
lastEventId- Sequence identifier of the last change in the stream response.An event ID is composed of two fields: a
commitNum, which identifies a transaction that changed the graph, and anopNum, which identifies a specific operation within that transaction:- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastTrxTimestampInMillis
GetSparqlStreamResponse.Builder lastTrxTimestampInMillis(Long lastTrxTimestampInMillis)
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
- Parameters:
lastTrxTimestampInMillis- The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
format
GetSparqlStreamResponse.Builder format(String format)
Serialization format for the change records being returned. Currently, the only supported value is
NQUADS.- Parameters:
format- Serialization format for the change records being returned. Currently, the only supported value isNQUADS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
GetSparqlStreamResponse.Builder records(Collection<SparqlRecord> records)
An array of serialized change-log stream records included in the response.
- Parameters:
records- An array of serialized change-log stream records included in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
GetSparqlStreamResponse.Builder records(SparqlRecord... records)
An array of serialized change-log stream records included in the response.
- Parameters:
records- An array of serialized change-log stream records included in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
GetSparqlStreamResponse.Builder records(Consumer<SparqlRecord.Builder>... records)
An array of serialized change-log stream records included in the response.
This is a convenience method that creates an instance of theSparqlRecord.Builderavoiding the need to create one manually viaSparqlRecord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#records(List.) - Parameters:
records- a consumer that will call methods onSparqlRecord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#records(java.util.Collection)
-
totalRecords
GetSparqlStreamResponse.Builder totalRecords(Integer totalRecords)
The total number of records in the response.
- Parameters:
totalRecords- The total number of records in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-