Interface CreateUsageLimitResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateUsageLimitResponse.Builder,
,CreateUsageLimitResponse> RedshiftServerlessResponse.Builder
,SdkBuilder<CreateUsageLimitResponse.Builder,
,CreateUsageLimitResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateUsageLimitResponse
@Mutable
@NotThreadSafe
public static interface CreateUsageLimitResponse.Builder
extends RedshiftServerlessResponse.Builder, SdkPojo, CopyableBuilder<CreateUsageLimitResponse.Builder,CreateUsageLimitResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateUsageLimitResponse.Builder
usageLimit
(Consumer<UsageLimit.Builder> usageLimit) The returned usage limit object.usageLimit
(UsageLimit usageLimit) The returned usage limit object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.redshiftserverless.model.RedshiftServerlessResponse.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 Details
-
usageLimit
The returned usage limit object.
- Parameters:
usageLimit
- The returned usage limit object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageLimit
The returned usage limit object.
This is a convenience method that creates an instance of theUsageLimit.Builder
avoiding the need to create one manually viaUsageLimit.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tousageLimit(UsageLimit)
.- Parameters:
usageLimit
- a consumer that will call methods onUsageLimit.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-