Interface DescribeProtectionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeProtectionResponse.Builder,,DescribeProtectionResponse> SdkBuilder<DescribeProtectionResponse.Builder,,DescribeProtectionResponse> SdkPojo,SdkResponse.Builder,ShieldResponse.Builder
- Enclosing class:
DescribeProtectionResponse
@Mutable
@NotThreadSafe
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
copyMethods 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, sdkHttpResponseMethods 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.Builderavoiding the need to create one manually viaProtection.builder().When the
Consumercompletes,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:
-