com.amazonaws.services.cloudfront.model
Class Restrictions

java.lang.Object
  extended by com.amazonaws.services.cloudfront.model.Restrictions
All Implemented Interfaces:
Serializable

public class Restrictions
extends Object
implements Serializable

A complex type that identifies ways in which you want to restrict distribution of your content.

See Also:
Serialized Form

Constructor Summary
Restrictions()
          Default constructor for a new Restrictions object.
Restrictions(GeoRestriction geoRestriction)
          Constructs a new Restrictions object.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Restrictions

public Restrictions()
Default constructor for a new Restrictions object. Callers should use the setter or fluent setter (with...) methods to initialize this 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 - 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.
Method Detail

getGeoRestriction

public GeoRestriction getGeoRestriction()
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.

Returns:
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.

setGeoRestriction

public void setGeoRestriction(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.

Parameters:
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.

withGeoRestriction

public Restrictions withGeoRestriction(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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2016. All rights reserved.