public SegmentLocation withCountry(SetDimension country) {
        setCountry(country);
        return this;
    }
<p>
The country or region code, in ISO 3166-1 alpha-2 format, for the segment.
</p>

@param country
       The country or region code, in ISO 3166-1 alpha-2 format, for the segment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentLocation.java