public ProtocolDetails withAs2Transports(String... as2Transports) {
        if (this.as2Transports == null) {
            setAs2Transports(new java.util.ArrayList<String>(as2Transports.length));
        }
        for (String ele : as2Transports) {
            this.as2Transports.add(ele);
        }
        return this;
    }
<p>
Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAs2Transports(java.util.Collection)} or {@link #withAs2Transports(java.util.Collection)} if you want
to override the existing values.
</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