public AwsApiGatewayEndpointConfiguration withTypes(String... types) {
        if (this.types == null) {
            setTypes(new java.util.ArrayList<String>(types.length));
        }
        for (String ele : types) {
            this.types.add(ele);
        }
        return this;
    }
<p>
A list of endpoint types for the REST API.
</p>
<p>
For an edge-optimized API, the endpoint type is <code>EDGE</code>. For a Regional API, the endpoint type is
<code>REGIONAL</code>. For a private API, the endpoint type is <code>PRIVATE</code>.
</p>
<p>
<b>NOTE:</b> 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.
</p>

@param types
       A list of endpoint types for the REST API.</p>
       <p>
       For an edge-optimized API, the endpoint type is <code>EDGE</code>. For a Regional API, the endpoint type
       is <code>REGIONAL</code>. For a private API, the endpoint type is <code>PRIVATE</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsApiGatewayEndpointConfiguration.java