Class Restrictions
java.lang.Object
com.amazonaws.services.cloudfront.model.Restrictions
- All Implemented Interfaces:
Serializable
,Cloneable
A complex type that identifies ways in which you want to restrict
distribution of your content.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Restrictions object.Restrictions
(GeoRestriction geoRestriction) Constructs a new Restrictions object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
hashCode()
void
setGeoRestriction
(GeoRestriction geoRestriction) toString()
Returns a string representation of this object; useful for testing and debugging.withGeoRestriction
(GeoRestriction geoRestriction)
-
Constructor Details
-
Restrictions
public Restrictions()Default constructor for Restrictions object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
Restrictions
Constructs a new Restrictions object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
geoRestriction
-
-
-
Method Details
-
setGeoRestriction
- Parameters:
geoRestriction
-
-
getGeoRestriction
- Returns:
-
withGeoRestriction
- Parameters:
geoRestriction
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-