public ConnectorConfiguration withConnectorModes(java.util.Collection<String> connectorModes) {
        setConnectorModes(connectorModes);
        return this;
    }
<p>
The connection modes that the connector supports.
</p>

@param connectorModes
       The connection modes that the connector supports.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appflow/src/main/java/com/amazonaws/services/appflow/model/ConnectorConfiguration.java