public Byoasn withAsn(String asn) {
        setAsn(asn);
        return this;
    }
<p>
A public 2-byte or 4-byte ASN.
</p>

@param asn
       A public 2-byte or 4-byte ASN.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/Byoasn.java