@Override public DomainContactImpl withCountry(CountryIsoCode country) { inner().addressMailing().withCountry(country.toString()); return this; }
@Override public CdnEndpointImpl withGeoFilter(String relativePath, GeoFilterActions action, CountryIsoCode countryCode) { GeoFilter geoFilter = this.createGeoFiltersObject(relativePath, action); if (geoFilter.countryCodes() == null) { geoFilter.withCountryCodes(new ArrayList<String>()); } geoFilter.countryCodes().add(countryCode.toString()); this.inner().geoFilters().add(geoFilter); return this; }
@Override public CdnEndpointImpl withGeoFilter(String relativePath, GeoFilterActions action, CountryIsoCode countryCode) { GeoFilter geoFilter = this.createGeoFiltersObject(relativePath, action); if (geoFilter.countryCodes() == null) { geoFilter.withCountryCodes(new ArrayList<String>()); } geoFilter.countryCodes().add(countryCode.toString()); this.inner().geoFilters().add(geoFilter); return this; }
@Override public CdnEndpointImpl withGeoFilter(String relativePath, GeoFilterActions action, Collection<CountryIsoCode> countryCodes) { GeoFilter geoFilter = this.createGeoFiltersObject(relativePath, action); if (geoFilter.countryCodes() == null) { geoFilter.withCountryCodes(new ArrayList<String>()); } else { geoFilter.countryCodes().clear(); } for (CountryIsoCode countryCode : countryCodes) { geoFilter.countryCodes().add(countryCode.toString()); } this.inner().geoFilters().add(geoFilter); return this; }
@Override public CdnEndpointImpl withGeoFilter(String relativePath, GeoFilterActions action, Collection<CountryIsoCode> countryCodes) { GeoFilter geoFilter = this.createGeoFiltersObject(relativePath, action); if (geoFilter.countryCodes() == null) { geoFilter.withCountryCodes(new ArrayList<String>()); } else { geoFilter.countryCodes().clear(); } for (CountryIsoCode countryCode : countryCodes) { geoFilter.countryCodes().add(countryCode.toString()); } this.inner().geoFilters().add(geoFilter); return this; }