public CreateConnectorRequest withAs2Config(As2ConnectorConfig as2Config) {
        setAs2Config(as2Config);
        return this;
    }
<p>
A structure that contains the parameters for an AS2 connector object.
</p>

@param as2Config
       A structure that contains the parameters for an AS2 connector object.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/CreateConnectorRequest.java