public ProtocolDetails withAs2Transports(As2Transport... as2Transports) {
        java.util.ArrayList<String> as2TransportsCopy = new java.util.ArrayList<String>(as2Transports.length);
        for (As2Transport value : as2Transports) {
            as2TransportsCopy.add(value.toString());
        }
        if (getAs2Transports() == null) {
            setAs2Transports(as2TransportsCopy);
        } else {
            getAs2Transports().addAll(as2TransportsCopy);
        }
        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