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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DescribeProtectionResponse.Builderprotection(Consumer<Protection.Builder> protection)The Protection that you requested.DescribeProtectionResponse.Builderprotection(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, sdkFieldNameToField, 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 Detail
-
protection
DescribeProtectionResponse.Builder protection(Protection 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
default DescribeProtectionResponse.Builder protection(Consumer<Protection.Builder> 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:
protection(Protection)
-
-