Interface GetItemResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetItemResponse.Builder,,GetItemResponse> JsonRpc10DataPlaneResponse.Builder,SdkBuilder<GetItemResponse.Builder,,GetItemResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetItemResponse
@Mutable
@NotThreadSafe
public static interface GetItemResponse.Builder
extends JsonRpc10DataPlaneResponse.Builder, SdkPojo, CopyableBuilder<GetItemResponse.Builder,GetItemResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetItemResponse.BuilderconsumedCapacity(Consumer<ConsumedCapacity.Builder> consumedCapacity) Sets the value of the ConsumedCapacity property for this object.consumedCapacity(ConsumedCapacity consumedCapacity) Sets the value of the ConsumedCapacity property for this object.item(Map<String, AttributeValue> item) Sets the value of the Item property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.jsonrpc10dataplane.model.JsonRpc10DataPlaneResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
item
Sets the value of the Item property for this object.- Parameters:
item- The new value for the Item property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
consumedCapacity
Sets the value of the ConsumedCapacity property for this object.- Parameters:
consumedCapacity- The new value for the ConsumedCapacity property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
consumedCapacity
default GetItemResponse.Builder consumedCapacity(Consumer<ConsumedCapacity.Builder> consumedCapacity) Sets the value of the ConsumedCapacity property for this object. This is a convenience method that creates an instance of theConsumedCapacity.Builderavoiding the need to create one manually viaConsumedCapacity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconsumedCapacity(ConsumedCapacity).- Parameters:
consumedCapacity- a consumer that will call methods onConsumedCapacity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-