Interface CreateProtectionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateProtectionRequest.Builder,CreateProtectionRequest>,SdkBuilder<CreateProtectionRequest.Builder,CreateProtectionRequest>,SdkPojo,SdkRequest.Builder,ShieldRequest.Builder
- Enclosing class:
- CreateProtectionRequest
public static interface CreateProtectionRequest.Builder extends ShieldRequest.Builder, SdkPojo, CopyableBuilder<CreateProtectionRequest.Builder,CreateProtectionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateProtectionRequest.Buildername(String name)Friendly name for theProtectionyou are creating.CreateProtectionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateProtectionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateProtectionRequest.BuilderresourceArn(String resourceArn)The ARN (Amazon Resource Name) of the resource to be protected.CreateProtectionRequest.Buildertags(Collection<Tag> tags)One or more tag key-value pairs for the Protection object that is created.CreateProtectionRequest.Buildertags(Consumer<Tag.Builder>... tags)One or more tag key-value pairs for the Protection object that is created.CreateProtectionRequest.Buildertags(Tag... tags)One or more tag key-value pairs for the Protection object that is created.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
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.services.shield.model.ShieldRequest.Builder
build
-
-
-
-
Method Detail
-
name
CreateProtectionRequest.Builder name(String name)
Friendly name for the
Protectionyou are creating.- Parameters:
name- Friendly name for theProtectionyou are creating.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
CreateProtectionRequest.Builder resourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the resource to be protected.
The ARN should be in one of the following formats:
-
For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id -
For an Elastic Load Balancer (Classic Load Balancer):
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name -
For an Amazon CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id -
For an Global Accelerator standard accelerator:
arn:aws:globalaccelerator::account-id:accelerator/accelerator-id -
For Amazon RouteĀ 53:
arn:aws:route53:::hostedzone/hosted-zone-id -
For an Elastic IP address:
arn:aws:ec2:region:account-id:eip-allocation/allocation-id
- Parameters:
resourceArn- The ARN (Amazon Resource Name) of the resource to be protected.The ARN should be in one of the following formats:
-
For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id -
For an Elastic Load Balancer (Classic Load Balancer):
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name -
For an Amazon CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id -
For an Global Accelerator standard accelerator:
arn:aws:globalaccelerator::account-id:accelerator/accelerator-id -
For Amazon RouteĀ 53:
arn:aws:route53:::hostedzone/hosted-zone-id -
For an Elastic IP address:
arn:aws:ec2:region:account-id:eip-allocation/allocation-id
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tags
CreateProtectionRequest.Builder tags(Collection<Tag> tags)
One or more tag key-value pairs for the Protection object that is created.
- Parameters:
tags- One or more tag key-value pairs for the Protection object that is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateProtectionRequest.Builder tags(Tag... tags)
One or more tag key-value pairs for the Protection object that is created.
- Parameters:
tags- One or more tag key-value pairs for the Protection object that is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateProtectionRequest.Builder tags(Consumer<Tag.Builder>... tags)
One or more tag key-value pairs for the Protection object that is created.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
CreateProtectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateProtectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-