Interface CreateProtectionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateProtectionRequest.Builder,
,CreateProtectionRequest> SdkBuilder<CreateProtectionRequest.Builder,
,CreateProtectionRequest> SdkPojo
,SdkRequest.Builder
,ShieldRequest.Builder
- Enclosing class:
CreateProtectionRequest
-
Method Summary
Modifier and TypeMethodDescriptionFriendly name for theProtection
you are creating.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceArn
(String resourceArn) The ARN (Amazon Resource Name) of the resource to be protected.tags
(Collection<Tag> tags) One or more tag key-value pairs for the Protection object that is created.tags
(Consumer<Tag.Builder>... tags) One or more tag key-value pairs for the Protection object that is created.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 Details
-
name
Friendly name for the
Protection
you are creating.- Parameters:
name
- Friendly name for theProtection
you are creating.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- 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:
-
overrideConfiguration
CreateProtectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateProtectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-