Interface DescribeProtectionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeProtectionResponse.Builder,
,DescribeProtectionResponse> SdkBuilder<DescribeProtectionResponse.Builder,
,DescribeProtectionResponse> SdkPojo
,SdkResponse.Builder
,ShieldResponse.Builder
- Enclosing class:
DescribeProtectionResponse
public static interface DescribeProtectionResponse.Builder
extends ShieldResponse.Builder, SdkPojo, CopyableBuilder<DescribeProtectionResponse.Builder,DescribeProtectionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionprotection
(Consumer<Protection.Builder> protection) The Protection that you requested.protection
(Protection protection) The Protection that you requested.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.shield.model.ShieldResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
protection
The Protection that you requested.
- Parameters:
protection
- The Protection that you requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protection
The Protection that you requested.
This is a convenience method that creates an instance of theProtection.Builder
avoiding the need to create one manually viaProtection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprotection(Protection)
.- Parameters:
protection
- a consumer that will call methods onProtection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-