public CreateDataflowEndpointGroupRequest withEndpointDetails(EndpointDetails... endpointDetails) {
        if (this.endpointDetails == null) {
            setEndpointDetails(new java.util.ArrayList<EndpointDetails>(endpointDetails.length));
        }
        for (EndpointDetails ele : endpointDetails) {
            this.endpointDetails.add(ele);
        }
        return this;
    }
<p>
Endpoint details of each endpoint in the dataflow endpoint group.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEndpointDetails(java.util.Collection)} or {@link #withEndpointDetails(java.util.Collection)} if you
want to override the existing values.
</p>

@param endpointDetails
       Endpoint details of each endpoint in the dataflow endpoint group.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-groundstation/src/main/java/com/amazonaws/services/groundstation/model/CreateDataflowEndpointGroupRequest.java