public ProtocolDetails withAs2Transports(java.util.Collection<String> as2Transports) {
        setAs2Transports(as2Transports);
        return this;
    }
<p>
Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
</p>

@param as2Transports
       Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
@return Returns a reference to this object so that method calls can be chained together.
@see As2Transport
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/ProtocolDetails.java