@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Restrictions extends Object implements Serializable, Cloneable
A complex type that identifies ways in which you want to restrict distribution of your content.
Constructor and Description |
---|
Restrictions()
Default constructor for Restrictions object.
|
Restrictions(GeoRestriction geoRestriction)
Constructs a new Restrictions object.
|
Modifier and Type | Method and Description |
---|---|
Restrictions |
clone() |
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.
|
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. CloudFront determines the
location of your users using MaxMind
GeoIP databases.public void setGeoRestriction(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.
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.public GeoRestriction getGeoRestriction()
A complex type that controls the countries in which your content is distributed. CloudFront determines the
location of your users using MaxMind
GeoIP databases.
MaxMind
GeoIP databases.public Restrictions withGeoRestriction(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.
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.public String toString()
toString
in class Object
Object.toString()
public Restrictions clone()