Interface GeoRestrictionCustomization.Builder

  • Method Details

    • 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:
    • 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:
    • 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

      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.