/* * 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.wafv2.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 GetRateBasedStatementManagedKeysRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional * application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an * Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. *
** To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: *
*
* CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
*
* API and SDKs - For all calls, use the Region endpoint us-east-1. *
** The name of the web ACL. You cannot change the name of a web ACL after you create it. *
*/ private String webACLName; /** ** The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. *
*/ private String webACLId; /** ** The name of the rule group reference statement in your web ACL. This is required only when you have the * rate-based rule nested inside a rule group. *
*/ private String ruleGroupRuleName; /** *
* The name of the rate-based rule to get the keys for. If you have the rule defined inside a rule group that you're
* using in your web ACL, also provide the name of the rule group reference statement in the request parameter
* RuleGroupRuleName
.
*
* Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional * application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an * Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. *
** To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: *
*
* CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
*
* API and SDKs - For all calls, use the Region endpoint us-east-1. *
** To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: *
*
* CLI - Specify the Region when you use the CloudFront scope:
* --scope=CLOUDFRONT --region=us-east-1
.
*
* API and SDKs - For all calls, use the Region endpoint us-east-1. *
** Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional * application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an * Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. *
** To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: *
*
* CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
*
* API and SDKs - For all calls, use the Region endpoint us-east-1. *
** To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: *
*
* CLI - Specify the Region when you use the CloudFront scope:
* --scope=CLOUDFRONT --region=us-east-1
.
*
* API and SDKs - For all calls, use the Region endpoint us-east-1. *
** Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional * application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an * Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. *
** To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: *
*
* CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
*
* API and SDKs - For all calls, use the Region endpoint us-east-1. *
** To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: *
*
* CLI - Specify the Region when you use the CloudFront scope:
* --scope=CLOUDFRONT --region=us-east-1
.
*
* API and SDKs - For all calls, use the Region endpoint us-east-1. *
** Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional * application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an * Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance. *
** To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: *
*
* CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
*
* API and SDKs - For all calls, use the Region endpoint us-east-1. *
** To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: *
*
* CLI - Specify the Region when you use the CloudFront scope:
* --scope=CLOUDFRONT --region=us-east-1
.
*
* API and SDKs - For all calls, use the Region endpoint us-east-1. *
** The name of the web ACL. You cannot change the name of a web ACL after you create it. *
* * @param webACLName * The name of the web ACL. You cannot change the name of a web ACL after you create it. */ public void setWebACLName(String webACLName) { this.webACLName = webACLName; } /** ** The name of the web ACL. You cannot change the name of a web ACL after you create it. *
* * @return The name of the web ACL. You cannot change the name of a web ACL after you create it. */ public String getWebACLName() { return this.webACLName; } /** ** The name of the web ACL. You cannot change the name of a web ACL after you create it. *
* * @param webACLName * The name of the web ACL. You cannot change the name of a web ACL after you create it. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRateBasedStatementManagedKeysRequest withWebACLName(String webACLName) { setWebACLName(webACLName); return this; } /** ** The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. *
* * @param webACLId * The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. * You provide it to operations like update and delete. */ public void setWebACLId(String webACLId) { this.webACLId = webACLId; } /** ** The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. *
* * @return The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. * You provide it to operations like update and delete. */ public String getWebACLId() { return this.webACLId; } /** ** The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. *
* * @param webACLId * The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. * You provide it to operations like update and delete. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRateBasedStatementManagedKeysRequest withWebACLId(String webACLId) { setWebACLId(webACLId); return this; } /** ** The name of the rule group reference statement in your web ACL. This is required only when you have the * rate-based rule nested inside a rule group. *
* * @param ruleGroupRuleName * The name of the rule group reference statement in your web ACL. This is required only when you have the * rate-based rule nested inside a rule group. */ public void setRuleGroupRuleName(String ruleGroupRuleName) { this.ruleGroupRuleName = ruleGroupRuleName; } /** ** The name of the rule group reference statement in your web ACL. This is required only when you have the * rate-based rule nested inside a rule group. *
* * @return The name of the rule group reference statement in your web ACL. This is required only when you have the * rate-based rule nested inside a rule group. */ public String getRuleGroupRuleName() { return this.ruleGroupRuleName; } /** ** The name of the rule group reference statement in your web ACL. This is required only when you have the * rate-based rule nested inside a rule group. *
* * @param ruleGroupRuleName * The name of the rule group reference statement in your web ACL. This is required only when you have the * rate-based rule nested inside a rule group. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRateBasedStatementManagedKeysRequest withRuleGroupRuleName(String ruleGroupRuleName) { setRuleGroupRuleName(ruleGroupRuleName); return this; } /** *
* The name of the rate-based rule to get the keys for. If you have the rule defined inside a rule group that you're
* using in your web ACL, also provide the name of the rule group reference statement in the request parameter
* RuleGroupRuleName
.
*
RuleGroupRuleName
.
*/
public void setRuleName(String ruleName) {
this.ruleName = ruleName;
}
/**
*
* The name of the rate-based rule to get the keys for. If you have the rule defined inside a rule group that you're
* using in your web ACL, also provide the name of the rule group reference statement in the request parameter
* RuleGroupRuleName
.
*
RuleGroupRuleName
.
*/
public String getRuleName() {
return this.ruleName;
}
/**
*
* The name of the rate-based rule to get the keys for. If you have the rule defined inside a rule group that you're
* using in your web ACL, also provide the name of the rule group reference statement in the request parameter
* RuleGroupRuleName
.
*
RuleGroupRuleName
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetRateBasedStatementManagedKeysRequest withRuleName(String ruleName) {
setRuleName(ruleName);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getScope() != null)
sb.append("Scope: ").append(getScope()).append(",");
if (getWebACLName() != null)
sb.append("WebACLName: ").append(getWebACLName()).append(",");
if (getWebACLId() != null)
sb.append("WebACLId: ").append(getWebACLId()).append(",");
if (getRuleGroupRuleName() != null)
sb.append("RuleGroupRuleName: ").append(getRuleGroupRuleName()).append(",");
if (getRuleName() != null)
sb.append("RuleName: ").append(getRuleName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetRateBasedStatementManagedKeysRequest == false)
return false;
GetRateBasedStatementManagedKeysRequest other = (GetRateBasedStatementManagedKeysRequest) obj;
if (other.getScope() == null ^ this.getScope() == null)
return false;
if (other.getScope() != null && other.getScope().equals(this.getScope()) == false)
return false;
if (other.getWebACLName() == null ^ this.getWebACLName() == null)
return false;
if (other.getWebACLName() != null && other.getWebACLName().equals(this.getWebACLName()) == false)
return false;
if (other.getWebACLId() == null ^ this.getWebACLId() == null)
return false;
if (other.getWebACLId() != null && other.getWebACLId().equals(this.getWebACLId()) == false)
return false;
if (other.getRuleGroupRuleName() == null ^ this.getRuleGroupRuleName() == null)
return false;
if (other.getRuleGroupRuleName() != null && other.getRuleGroupRuleName().equals(this.getRuleGroupRuleName()) == false)
return false;
if (other.getRuleName() == null ^ this.getRuleName() == null)
return false;
if (other.getRuleName() != null && other.getRuleName().equals(this.getRuleName()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getScope() == null) ? 0 : getScope().hashCode());
hashCode = prime * hashCode + ((getWebACLName() == null) ? 0 : getWebACLName().hashCode());
hashCode = prime * hashCode + ((getWebACLId() == null) ? 0 : getWebACLId().hashCode());
hashCode = prime * hashCode + ((getRuleGroupRuleName() == null) ? 0 : getRuleGroupRuleName().hashCode());
hashCode = prime * hashCode + ((getRuleName() == null) ? 0 : getRuleName().hashCode());
return hashCode;
}
@Override
public GetRateBasedStatementManagedKeysRequest clone() {
return (GetRateBasedStatementManagedKeysRequest) super.clone();
}
}