public IpCountry withCode(String code) {
        setCode(code);
        return this;
    }
<p>
The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from. For
example, US for the United States.
</p>

@param code
       The two-character code, in ISO 3166-1 alpha-2 format, for the country that the IP address originated from.
       For example, US for the United States.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/IpCountry.java