public AwsApiGatewayEndpointConfiguration withTypes(java.util.Collection<String> types) {
        setTypes(types);
        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>

@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