/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace WAFV2 { namespace Model { /** */ class GetRateBasedStatementManagedKeysRequest : public WAFV2Request { public: AWS_WAFV2_API GetRateBasedStatementManagedKeysRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetRateBasedStatementManagedKeys"; } AWS_WAFV2_API Aws::String SerializePayload() const override; AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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.

*/ inline const Scope& GetScope() const{ return m_scope; } /** *

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.

*/ inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } /** *

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.

*/ inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; } /** *

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.

*/ inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } /** *

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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithScope(const Scope& value) { SetScope(value); return *this;} /** *

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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;} /** *

The name of the web ACL. You cannot change the name of a web ACL after you * create it.

*/ inline const Aws::String& GetWebACLName() const{ return m_webACLName; } /** *

The name of the web ACL. You cannot change the name of a web ACL after you * create it.

*/ inline bool WebACLNameHasBeenSet() const { return m_webACLNameHasBeenSet; } /** *

The name of the web ACL. You cannot change the name of a web ACL after you * create it.

*/ inline void SetWebACLName(const Aws::String& value) { m_webACLNameHasBeenSet = true; m_webACLName = value; } /** *

The name of the web ACL. You cannot change the name of a web ACL after you * create it.

*/ inline void SetWebACLName(Aws::String&& value) { m_webACLNameHasBeenSet = true; m_webACLName = std::move(value); } /** *

The name of the web ACL. You cannot change the name of a web ACL after you * create it.

*/ inline void SetWebACLName(const char* value) { m_webACLNameHasBeenSet = true; m_webACLName.assign(value); } /** *

The name of the web ACL. You cannot change the name of a web ACL after you * create it.

*/ inline GetRateBasedStatementManagedKeysRequest& WithWebACLName(const Aws::String& value) { SetWebACLName(value); return *this;} /** *

The name of the web ACL. You cannot change the name of a web ACL after you * create it.

*/ inline GetRateBasedStatementManagedKeysRequest& WithWebACLName(Aws::String&& value) { SetWebACLName(std::move(value)); return *this;} /** *

The name of the web ACL. You cannot change the name of a web ACL after you * create it.

*/ inline GetRateBasedStatementManagedKeysRequest& WithWebACLName(const char* value) { SetWebACLName(value); 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.

*/ inline const Aws::String& GetWebACLId() const{ return m_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.

*/ inline bool WebACLIdHasBeenSet() const { return m_webACLIdHasBeenSet; } /** *

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.

*/ inline void SetWebACLId(const Aws::String& value) { m_webACLIdHasBeenSet = true; m_webACLId = value; } /** *

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.

*/ inline void SetWebACLId(Aws::String&& value) { m_webACLIdHasBeenSet = true; m_webACLId = std::move(value); } /** *

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.

*/ inline void SetWebACLId(const char* value) { m_webACLIdHasBeenSet = true; m_webACLId.assign(value); } /** *

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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithWebACLId(const Aws::String& value) { SetWebACLId(value); 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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithWebACLId(Aws::String&& value) { SetWebACLId(std::move(value)); 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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithWebACLId(const char* value) { SetWebACLId(value); 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.

*/ inline const Aws::String& GetRuleGroupRuleName() const{ return m_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.

*/ inline bool RuleGroupRuleNameHasBeenSet() const { return m_ruleGroupRuleNameHasBeenSet; } /** *

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.

*/ inline void SetRuleGroupRuleName(const Aws::String& value) { m_ruleGroupRuleNameHasBeenSet = true; m_ruleGroupRuleName = value; } /** *

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.

*/ inline void SetRuleGroupRuleName(Aws::String&& value) { m_ruleGroupRuleNameHasBeenSet = true; m_ruleGroupRuleName = std::move(value); } /** *

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.

*/ inline void SetRuleGroupRuleName(const char* value) { m_ruleGroupRuleNameHasBeenSet = true; m_ruleGroupRuleName.assign(value); } /** *

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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithRuleGroupRuleName(const Aws::String& value) { SetRuleGroupRuleName(value); 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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithRuleGroupRuleName(Aws::String&& value) { SetRuleGroupRuleName(std::move(value)); 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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithRuleGroupRuleName(const char* value) { SetRuleGroupRuleName(value); 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.

*/ inline const Aws::String& GetRuleName() const{ return m_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.

*/ inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; } /** *

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.

*/ inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; } /** *

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.

*/ inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); } /** *

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.

*/ inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); } /** *

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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); 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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); 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.

*/ inline GetRateBasedStatementManagedKeysRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;} private: Scope m_scope; bool m_scopeHasBeenSet = false; Aws::String m_webACLName; bool m_webACLNameHasBeenSet = false; Aws::String m_webACLId; bool m_webACLIdHasBeenSet = false; Aws::String m_ruleGroupRuleName; bool m_ruleGroupRuleNameHasBeenSet = false; Aws::String m_ruleName; bool m_ruleNameHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws