Interface GetCapacityProviderResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCapacityProviderResponse.Builder,,GetCapacityProviderResponse> LambdaResponse.Builder,SdkBuilder<GetCapacityProviderResponse.Builder,,GetCapacityProviderResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCapacityProviderResponse
@Mutable
@NotThreadSafe
public static interface GetCapacityProviderResponse.Builder
extends LambdaResponse.Builder, SdkPojo, CopyableBuilder<GetCapacityProviderResponse.Builder,GetCapacityProviderResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncapacityProvider(Consumer<CapacityProvider.Builder> capacityProvider) Information about the capacity provider, including its configuration and current state.capacityProvider(CapacityProvider capacityProvider) Information about the capacity provider, including its configuration and current state.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaResponse.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
-
capacityProvider
Information about the capacity provider, including its configuration and current state.
- Parameters:
capacityProvider- Information about the capacity provider, including its configuration and current state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProvider
default GetCapacityProviderResponse.Builder capacityProvider(Consumer<CapacityProvider.Builder> capacityProvider) Information about the capacity provider, including its configuration and current state.
This is a convenience method that creates an instance of theCapacityProvider.Builderavoiding the need to create one manually viaCapacityProvider.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocapacityProvider(CapacityProvider).- Parameters:
capacityProvider- a consumer that will call methods onCapacityProvider.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-