Interface GeoRestrictionCustomization.Builder

    • Method Detail

      • restrictionType

        GeoRestrictionCustomization.Builder restrictionType​(String restrictionType)

        The method that you want to use to restrict distribution of your content by country:

        • none: No geographic restriction is enabled, meaning access to content is not restricted by client geo location.

        • blacklist: The Location elements specify the countries in which you don't want CloudFront to distribute your content.

        • whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.

        Parameters:
        restrictionType - The method that you want to use to restrict distribution of your content by country:

        • none: No geographic restriction is enabled, meaning access to content is not restricted by client geo location.

        • blacklist: The Location elements specify the countries in which you don't want CloudFront to distribute your content.

        • whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GeoRestrictionType, GeoRestrictionType
      • restrictionType

        GeoRestrictionCustomization.Builder restrictionType​(GeoRestrictionType restrictionType)

        The method that you want to use to restrict distribution of your content by country:

        • none: No geographic restriction is enabled, meaning access to content is not restricted by client geo location.

        • blacklist: The Location elements specify the countries in which you don't want CloudFront to distribute your content.

        • whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.

        Parameters:
        restrictionType - The method that you want to use to restrict distribution of your content by country:

        • none: No geographic restriction is enabled, meaning access to content is not restricted by client geo location.

        • blacklist: The Location elements specify the countries in which you don't want CloudFront to distribute your content.

        • whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GeoRestrictionType, GeoRestrictionType
      • locations

        GeoRestrictionCustomization.Builder locations​(Collection<String> locations)

        The locations for geographic restrictions.

        Parameters:
        locations - The locations for geographic restrictions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • locations

        GeoRestrictionCustomization.Builder locations​(String... locations)

        The locations for geographic restrictions.

        Parameters:
        locations - The locations for geographic restrictions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.