/* * 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 CreateAPIKeyRequest 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 client application domains that you want to use this API key for. *
*
* Example JSON: "TokenDomains": ["abc.com", "store.abc.com"]
*
* Public suffixes aren't allowed. For example, you can't use usa.gov
or co.uk
as token
* domains.
*
* 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 client application domains that you want to use this API key for. *
*
* Example JSON: "TokenDomains": ["abc.com", "store.abc.com"]
*
* Public suffixes aren't allowed. For example, you can't use usa.gov
or co.uk
as token
* domains.
*
* Example JSON: "TokenDomains": ["abc.com", "store.abc.com"]
*
* Public suffixes aren't allowed. For example, you can't use
* The client application domains that you want to use this API key for.
*
* Example JSON:
* Public suffixes aren't allowed. For example, you can't use usa.gov
or co.uk
as
* token domains.
*/
public java.util.List"TokenDomains": ["abc.com", "store.abc.com"]
* usa.gov
or co.uk
as token
* domains.
*
* Example JSON: "TokenDomains": ["abc.com", "store.abc.com"]
*
* Public suffixes aren't allowed. For example, you can't use
* The client application domains that you want to use this API key for.
*
* Example JSON:
* Public suffixes aren't allowed. For example, you can't use
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTokenDomains(java.util.Collection)} or {@link #withTokenDomains(java.util.Collection)} if you want to
* override the existing values.
* usa.gov
or co.uk
as
* token domains.
*/
public void setTokenDomains(java.util.Collection"TokenDomains": ["abc.com", "store.abc.com"]
* usa.gov
or co.uk
as token
* domains.
*
* Example JSON: "TokenDomains": ["abc.com", "store.abc.com"]
*
* Public suffixes aren't allowed. For example, you can't use
* The client application domains that you want to use this API key for.
*
* Example JSON:
* Public suffixes aren't allowed. For example, you can't use usa.gov
or co.uk
as
* token domains.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAPIKeyRequest withTokenDomains(String... tokenDomains) {
if (this.tokenDomains == null) {
setTokenDomains(new java.util.ArrayList"TokenDomains": ["abc.com", "store.abc.com"]
* usa.gov
or co.uk
as token
* domains.
*
* Example JSON: "TokenDomains": ["abc.com", "store.abc.com"]
*
* Public suffixes aren't allowed. For example, you can't use usa.gov
or co.uk
as
* token domains.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAPIKeyRequest withTokenDomains(java.util.Collection