/* * 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.apigateway.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) * has. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EndpointConfiguration implements Serializable, Cloneable, StructuredPojo { /** *
* A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API
* and its custom domain name, the endpoint type is "EDGE"
. For a regional API and its custom domain
* name, the endpoint type is REGIONAL
. For a private API, the endpoint type is PRIVATE
.
*
* A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for
* PRIVATE
endpoint type.
*
* A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API
* and its custom domain name, the endpoint type is "EDGE"
. For a regional API and its custom domain
* name, the endpoint type is REGIONAL
. For a private API, the endpoint type is PRIVATE
.
*
"EDGE"
. For a regional
* API and its custom domain name, the endpoint type is REGIONAL
. For a private API, the
* endpoint type is PRIVATE
.
* @see EndpointType
*/
public java.util.List
* A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API
* and its custom domain name, the endpoint type is "EDGE"
. For a regional API and its custom domain
* name, the endpoint type is REGIONAL
. For a private API, the endpoint type is PRIVATE
.
*
"EDGE"
. For a regional API and its
* custom domain name, the endpoint type is REGIONAL
. For a private API, the endpoint type is
* PRIVATE
.
* @see EndpointType
*/
public void setTypes(java.util.Collection
* A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API
* and its custom domain name, the endpoint type is "EDGE"
. For a regional API and its custom domain
* name, the endpoint type is REGIONAL
. For a private API, the endpoint type is PRIVATE
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTypes(java.util.Collection)} or {@link #withTypes(java.util.Collection)} if you want to override the * existing values. *
* * @param types * A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized * API and its custom domain name, the endpoint type is"EDGE"
. For a regional API and its
* custom domain name, the endpoint type is REGIONAL
. For a private API, the endpoint type is
* PRIVATE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EndpointType
*/
public EndpointConfiguration withTypes(String... types) {
if (this.types == null) {
setTypes(new java.util.ArrayList
* A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API
* and its custom domain name, the endpoint type is "EDGE"
. For a regional API and its custom domain
* name, the endpoint type is REGIONAL
. For a private API, the endpoint type is PRIVATE
.
*
"EDGE"
. For a regional API and its
* custom domain name, the endpoint type is REGIONAL
. For a private API, the endpoint type is
* PRIVATE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EndpointType
*/
public EndpointConfiguration withTypes(java.util.Collection
* A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API
* and its custom domain name, the endpoint type is "EDGE"
. For a regional API and its custom domain
* name, the endpoint type is REGIONAL
. For a private API, the endpoint type is PRIVATE
.
*
"EDGE"
. For a regional API and its
* custom domain name, the endpoint type is REGIONAL
. For a private API, the endpoint type is
* PRIVATE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EndpointType
*/
public EndpointConfiguration withTypes(EndpointType... types) {
java.util.ArrayList
* A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for
* PRIVATE
endpoint type.
*
PRIVATE
endpoint type.
*/
public java.util.List
* A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for
* PRIVATE
endpoint type.
*
PRIVATE
endpoint type.
*/
public void setVpcEndpointIds(java.util.Collection
* A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for
* PRIVATE
endpoint type.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcEndpointIds(java.util.Collection)} or {@link #withVpcEndpointIds(java.util.Collection)} if you want * to override the existing values. *
* * @param vpcEndpointIds * A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported * forPRIVATE
endpoint type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EndpointConfiguration withVpcEndpointIds(String... vpcEndpointIds) {
if (this.vpcEndpointIds == null) {
setVpcEndpointIds(new java.util.ArrayList
* A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for
* PRIVATE
endpoint type.
*
PRIVATE
endpoint type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EndpointConfiguration withVpcEndpointIds(java.util.Collection