/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.waf.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AssociateWebACLRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A unique identifier (ID) for the web ACL. *
*/ private String webACLId; /** ** The ARN (Amazon Resource Name) of the resource to be protected, either an application load balancer or Amazon API * Gateway stage. *
** 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 Amazon API Gateway stage:
* arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
*
* A unique identifier (ID) for the web ACL. *
* * @param webACLId * A unique identifier (ID) for the web ACL. */ public void setWebACLId(String webACLId) { this.webACLId = webACLId; } /** ** A unique identifier (ID) for the web ACL. *
* * @return A unique identifier (ID) for the web ACL. */ public String getWebACLId() { return this.webACLId; } /** ** A unique identifier (ID) for the web ACL. *
* * @param webACLId * A unique identifier (ID) for the web ACL. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateWebACLRequest withWebACLId(String webACLId) { setWebACLId(webACLId); return this; } /** ** The ARN (Amazon Resource Name) of the resource to be protected, either an application load balancer or Amazon API * Gateway stage. *
** 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 Amazon API Gateway stage:
* arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
*
* 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 Amazon API Gateway stage:
* arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
*
* The ARN (Amazon Resource Name) of the resource to be protected, either an application load balancer or Amazon API * Gateway stage. *
** 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 Amazon API Gateway stage:
* arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
*
* 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 Amazon API Gateway stage:
* arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
*
* The ARN (Amazon Resource Name) of the resource to be protected, either an application load balancer or Amazon API * Gateway stage. *
** 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 Amazon API Gateway stage:
* arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
*
* 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 Amazon API Gateway stage:
* arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
*