Class Restrictions

java.lang.Object
com.amazonaws.services.cloudfront.model.Restrictions
All Implemented Interfaces:
Serializable, Cloneable

public class Restrictions extends Object implements Serializable, Cloneable
A complex type that identifies ways in which you want to restrict distribution of your content.
See Also:
  • 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

      public Restrictions(GeoRestriction geoRestriction)
      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

      public void setGeoRestriction(GeoRestriction geoRestriction)
      Parameters:
      geoRestriction -
    • getGeoRestriction

      public GeoRestriction getGeoRestriction()
      Returns:
    • withGeoRestriction

      public Restrictions withGeoRestriction(GeoRestriction geoRestriction)
      Parameters:
      geoRestriction -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Restrictions clone()
      Overrides:
      clone in class Object