public AwsDmsEndpointDetails withEndpointType(String endpointType) {
        setEndpointType(endpointType);
        return this;
    }
<p>
The type of endpoint. Valid values are source and target.
</p>

@param endpointType
       The type of endpoint. Valid values are source and target.
@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/AwsDmsEndpointDetails.java