Interface DeregisterImageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DeregisterImageResponse.Builder,,DeregisterImageResponse> Ec2Response.Builder,SdkBuilder<DeregisterImageResponse.Builder,,DeregisterImageResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DeregisterImageResponse
@Mutable
@NotThreadSafe
public static interface DeregisterImageResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DeregisterImageResponse.Builder,DeregisterImageResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondeleteSnapshotResults(Collection<DeleteSnapshotReturnCode> deleteSnapshotResults) The deletion result for each snapshot associated with the AMI, including the snapshot ID and its success or error code.deleteSnapshotResults(Consumer<DeleteSnapshotReturnCode.Builder>... deleteSnapshotResults) The deletion result for each snapshot associated with the AMI, including the snapshot ID and its success or error code.deleteSnapshotResults(DeleteSnapshotReturnCode... deleteSnapshotResults) The deletion result for each snapshot associated with the AMI, including the snapshot ID and its success or error code.returnValue(Boolean returnValue) Returnstrueif the request succeeds; otherwise, it returns an error.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.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
-
returnValue
Returns
trueif the request succeeds; otherwise, it returns an error.- Parameters:
returnValue- Returnstrueif the request succeeds; otherwise, it returns an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteSnapshotResults
DeregisterImageResponse.Builder deleteSnapshotResults(Collection<DeleteSnapshotReturnCode> deleteSnapshotResults) The deletion result for each snapshot associated with the AMI, including the snapshot ID and its success or error code.
- Parameters:
deleteSnapshotResults- The deletion result for each snapshot associated with the AMI, including the snapshot ID and its success or error code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteSnapshotResults
DeregisterImageResponse.Builder deleteSnapshotResults(DeleteSnapshotReturnCode... deleteSnapshotResults) The deletion result for each snapshot associated with the AMI, including the snapshot ID and its success or error code.
- Parameters:
deleteSnapshotResults- The deletion result for each snapshot associated with the AMI, including the snapshot ID and its success or error code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteSnapshotResults
DeregisterImageResponse.Builder deleteSnapshotResults(Consumer<DeleteSnapshotReturnCode.Builder>... deleteSnapshotResults) The deletion result for each snapshot associated with the AMI, including the snapshot ID and its success or error code.
This is a convenience method that creates an instance of theDeleteSnapshotReturnCode.Builderavoiding the need to create one manually viaDeleteSnapshotReturnCode.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeleteSnapshotResults(List<DeleteSnapshotReturnCode>).- Parameters:
deleteSnapshotResults- a consumer that will call methods onDeleteSnapshotReturnCode.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-