Interface UpdateServiceFunctionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<UpdateServiceFunctionResponse.Builder,,UpdateServiceFunctionResponse> Resiliencehubv2Response.Builder,SdkBuilder<UpdateServiceFunctionResponse.Builder,,UpdateServiceFunctionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
UpdateServiceFunctionResponse
@Mutable
@NotThreadSafe
public static interface UpdateServiceFunctionResponse.Builder
extends Resiliencehubv2Response.Builder, SdkPojo, CopyableBuilder<UpdateServiceFunctionResponse.Builder,UpdateServiceFunctionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionserviceFunction(Consumer<ServiceFunction.Builder> serviceFunction) The updated service function.serviceFunction(ServiceFunction serviceFunction) The updated service function.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.resiliencehubv2.model.Resiliencehubv2Response.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
-
serviceFunction
The updated service function.
- Parameters:
serviceFunction- The updated service function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceFunction
default UpdateServiceFunctionResponse.Builder serviceFunction(Consumer<ServiceFunction.Builder> serviceFunction) The updated service function.
This is a convenience method that creates an instance of theServiceFunction.Builderavoiding the need to create one manually viaServiceFunction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserviceFunction(ServiceFunction).- Parameters:
serviceFunction- a consumer that will call methods onServiceFunction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-