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 Details

    • name

      Friendly name for the Protection you are creating.

      Parameters:
      name - Friendly name for the Protection you 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

      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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.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 interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.