public PlaybackRestrictionPolicySummary withAllowedCountries(String... allowedCountries) {
        if (this.allowedCountries == null) {
            setAllowedCountries(new java.util.ArrayList<String>(allowedCountries.length));
        }
        for (String ele : allowedCountries) {
            this.allowedCountries.add(ele);
        }
        return this;
    }
<p>
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned <a
href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a> codes. Default: All countries (an
empty array).
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAllowedCountries(java.util.Collection)} or {@link #withAllowedCountries(java.util.Collection)} if you
want to override the existing values.
</p>

@param allowedCountries
       A list of country codes that control geoblocking restriction. Allowed values are the officially assigned
       <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a> codes. Default: All
       countries (an empty array).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ivs/src/main/java/com/amazonaws/services/ivs/model/PlaybackRestrictionPolicySummary.java