public class Restrictions extends Object implements Serializable
A complex type that identifies ways in which you want to restrict distribution of your content.
Constructor and Description |
---|
Restrictions()
Default constructor for a new Restrictions object.
|
Restrictions(GeoRestriction geoRestriction)
Constructs a new Restrictions object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
GeoRestriction |
getGeoRestriction()
A complex type that controls the countries in which your content is
distributed.
|
int |
hashCode() |
void |
setGeoRestriction(GeoRestriction geoRestriction)
A complex type that controls the countries in which your content is
distributed.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Restrictions |
withGeoRestriction(GeoRestriction geoRestriction)
A complex type that controls the countries in which your content is
distributed.
|
public Restrictions()
public Restrictions(GeoRestriction geoRestriction)
geoRestriction
- A complex type that controls the countries in
which your content is distributed. For more information about geo
restriction, go to Customizing Error Responses in the Amazon
CloudFront Developer Guide. CloudFront determines the location of your
users using MaxMind GeoIP databases. For information about the
accuracy of these databases, see How accurate are your GeoIP
databases? on the MaxMind website.public GeoRestriction getGeoRestriction()
public void setGeoRestriction(GeoRestriction geoRestriction)
geoRestriction
- A complex type that controls the countries in which your content is
distributed. For more information about geo restriction, go to
Customizing Error Responses in the Amazon CloudFront Developer Guide.
CloudFront determines the location of your users using MaxMind GeoIP
databases. For information about the accuracy of these databases, see
How accurate are your GeoIP databases? on the MaxMind website.public Restrictions withGeoRestriction(GeoRestriction geoRestriction)
Returns a reference to this object so that method calls can be chained together.
geoRestriction
- A complex type that controls the countries in which your content is
distributed. For more information about geo restriction, go to
Customizing Error Responses in the Amazon CloudFront Developer Guide.
CloudFront determines the location of your users using MaxMind GeoIP
databases. For information about the accuracy of these databases, see
How accurate are your GeoIP databases? on the MaxMind website.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.