Interface Restrictions.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Restrictions.Builder,Restrictions>, SdkBuilder<Restrictions.Builder,Restrictions>, SdkPojo
Enclosing class:
Restrictions

public static interface Restrictions.Builder extends SdkPojo, CopyableBuilder<Restrictions.Builder,Restrictions>
  • Method Details

    • geoRestriction

      Restrictions.Builder geoRestriction(GeoRestriction geoRestriction)

      A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.

      Parameters:
      geoRestriction - A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • geoRestriction

      default Restrictions.Builder geoRestriction(Consumer<GeoRestriction.Builder> geoRestriction)

      A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.

      This is a convenience method that creates an instance of the GeoRestriction.Builder avoiding the need to create one manually via GeoRestriction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to geoRestriction(GeoRestriction).

      Parameters:
      geoRestriction - a consumer that will call methods on GeoRestriction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: