@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GeoRestriction extends Object implements Serializable, Cloneable
A complex type that controls the countries in which your content is distributed. CloudFront determines the location
of your users using MaxMind
GeoIP databases.
Constructor and Description |
---|
GeoRestriction()
Default constructor for GeoRestriction object.
|
GeoRestriction(GeoRestrictionType restrictionType)
Constructs a new GeoRestriction object.
|
GeoRestriction(String restrictionType)
Constructs a new GeoRestriction object.
|
Modifier and Type | Method and Description |
---|---|
GeoRestriction |
clone() |
boolean |
equals(Object obj) |
List<String> |
getItems()
A complex type that contains a
Location element for each country in which you want CloudFront either
to distribute your content (whitelist ) or not distribute your content (blacklist ). |
Integer |
getQuantity()
When geo restriction is
enabled , this is the number of countries in your whitelist or
blacklist . |
String |
getRestrictionType()
The method that you want to use to restrict distribution of your content by country:
|
int |
hashCode() |
void |
setItems(Collection<String> items)
A complex type that contains a
Location element for each country in which you want CloudFront either
to distribute your content (whitelist ) or not distribute your content (blacklist ). |
void |
setQuantity(Integer quantity)
When geo restriction is
enabled , this is the number of countries in your whitelist or
blacklist . |
void |
setRestrictionType(GeoRestrictionType restrictionType)
The method that you want to use to restrict distribution of your content by country:
|
void |
setRestrictionType(String restrictionType)
The method that you want to use to restrict distribution of your content by country:
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GeoRestriction |
withItems(Collection<String> items)
A complex type that contains a
Location element for each country in which you want CloudFront either
to distribute your content (whitelist ) or not distribute your content (blacklist ). |
GeoRestriction |
withItems(String... items)
A complex type that contains a
Location element for each country in which you want CloudFront either
to distribute your content (whitelist ) or not distribute your content (blacklist ). |
GeoRestriction |
withQuantity(Integer quantity)
When geo restriction is
enabled , this is the number of countries in your whitelist or
blacklist . |
GeoRestriction |
withRestrictionType(GeoRestrictionType restrictionType)
The method that you want to use to restrict distribution of your content by country:
|
GeoRestriction |
withRestrictionType(String restrictionType)
The method that you want to use to restrict distribution of your content by country:
|
public GeoRestriction()
public GeoRestriction(String restrictionType)
restrictionType
- The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client
geo location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want
CloudFront to distribute your content.
public GeoRestriction(GeoRestrictionType restrictionType)
restrictionType
- The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client
geo location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want
CloudFront to distribute your content.
public void setRestrictionType(String restrictionType)
The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client geo
location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want CloudFront to
distribute your content.
restrictionType
- The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client
geo location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want
CloudFront to distribute your content.
GeoRestrictionType
public String getRestrictionType()
The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client geo
location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want CloudFront to
distribute your content.
none
: No geo restriction is enabled, meaning access to content is not restricted by client
geo location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want
CloudFront to distribute your content.
GeoRestrictionType
public GeoRestriction withRestrictionType(String restrictionType)
The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client geo
location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want CloudFront to
distribute your content.
restrictionType
- The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client
geo location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want
CloudFront to distribute your content.
GeoRestrictionType
public void setRestrictionType(GeoRestrictionType restrictionType)
The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client geo
location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want CloudFront to
distribute your content.
restrictionType
- The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client
geo location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want
CloudFront to distribute your content.
GeoRestrictionType
public GeoRestriction withRestrictionType(GeoRestrictionType restrictionType)
The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client geo
location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want CloudFront to
distribute your content.
restrictionType
- The method that you want to use to restrict distribution of your content by country:
none
: No geo restriction is enabled, meaning access to content is not restricted by client
geo location.
blacklist
: The Location
elements specify the countries in which you don't want
CloudFront to distribute your content.
whitelist
: The Location
elements specify the countries in which you want
CloudFront to distribute your content.
GeoRestrictionType
public void setQuantity(Integer quantity)
When geo restriction is enabled
, this is the number of countries in your whitelist
or
blacklist
. Otherwise, when it is not enabled, Quantity
is 0
, and you can
omit Items
.
quantity
- When geo restriction is enabled
, this is the number of countries in your
whitelist
or blacklist
. Otherwise, when it is not enabled, Quantity
is 0
, and you can omit Items
.public Integer getQuantity()
When geo restriction is enabled
, this is the number of countries in your whitelist
or
blacklist
. Otherwise, when it is not enabled, Quantity
is 0
, and you can
omit Items
.
enabled
, this is the number of countries in your
whitelist
or blacklist
. Otherwise, when it is not enabled,
Quantity
is 0
, and you can omit Items
.public GeoRestriction withQuantity(Integer quantity)
When geo restriction is enabled
, this is the number of countries in your whitelist
or
blacklist
. Otherwise, when it is not enabled, Quantity
is 0
, and you can
omit Items
.
quantity
- When geo restriction is enabled
, this is the number of countries in your
whitelist
or blacklist
. Otherwise, when it is not enabled, Quantity
is 0
, and you can omit Items
.public List<String> getItems()
A complex type that contains a Location
element for each country in which you want CloudFront either
to distribute your content (whitelist
) or not distribute your content (blacklist
).
The Location
element is a two-letter, uppercase country code for a country that you want to include
in your blacklist
or whitelist
. Include one Location
element for each
country.
CloudFront and MaxMind
both use ISO 3166
country codes. For the current list of
countries and the corresponding codes, see ISO 3166-1-alpha-2
code on the International
Organization for Standardization website. You can also refer to the country list on the CloudFront console,
which includes both country names and codes.
Location
element for each country in which you want
CloudFront either to distribute your content (whitelist
) or not distribute your content (
blacklist
).
The Location
element is a two-letter, uppercase country code for a country that you want to
include in your blacklist
or whitelist
. Include one Location
element for each country.
CloudFront and MaxMind
both use ISO 3166
country codes. For the current list of
countries and the corresponding codes, see ISO 3166-1-alpha-2
code on the International
Organization for Standardization website. You can also refer to the country list on the CloudFront
console, which includes both country names and codes.
public void setItems(Collection<String> items)
A complex type that contains a Location
element for each country in which you want CloudFront either
to distribute your content (whitelist
) or not distribute your content (blacklist
).
The Location
element is a two-letter, uppercase country code for a country that you want to include
in your blacklist
or whitelist
. Include one Location
element for each
country.
CloudFront and MaxMind
both use ISO 3166
country codes. For the current list of
countries and the corresponding codes, see ISO 3166-1-alpha-2
code on the International
Organization for Standardization website. You can also refer to the country list on the CloudFront console,
which includes both country names and codes.
items
- A complex type that contains a Location
element for each country in which you want CloudFront
either to distribute your content (whitelist
) or not distribute your content (
blacklist
).
The Location
element is a two-letter, uppercase country code for a country that you want to
include in your blacklist
or whitelist
. Include one Location
element for each country.
CloudFront and MaxMind
both use ISO 3166
country codes. For the current list of
countries and the corresponding codes, see ISO 3166-1-alpha-2
code on the International
Organization for Standardization website. You can also refer to the country list on the CloudFront
console, which includes both country names and codes.
public GeoRestriction withItems(String... items)
A complex type that contains a Location
element for each country in which you want CloudFront either
to distribute your content (whitelist
) or not distribute your content (blacklist
).
The Location
element is a two-letter, uppercase country code for a country that you want to include
in your blacklist
or whitelist
. Include one Location
element for each
country.
CloudFront and MaxMind
both use ISO 3166
country codes. For the current list of
countries and the corresponding codes, see ISO 3166-1-alpha-2
code on the International
Organization for Standardization website. You can also refer to the country list on the CloudFront console,
which includes both country names and codes.
NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)
or withItems(java.util.Collection)
if you want to override the
existing values.
items
- A complex type that contains a Location
element for each country in which you want CloudFront
either to distribute your content (whitelist
) or not distribute your content (
blacklist
).
The Location
element is a two-letter, uppercase country code for a country that you want to
include in your blacklist
or whitelist
. Include one Location
element for each country.
CloudFront and MaxMind
both use ISO 3166
country codes. For the current list of
countries and the corresponding codes, see ISO 3166-1-alpha-2
code on the International
Organization for Standardization website. You can also refer to the country list on the CloudFront
console, which includes both country names and codes.
public GeoRestriction withItems(Collection<String> items)
A complex type that contains a Location
element for each country in which you want CloudFront either
to distribute your content (whitelist
) or not distribute your content (blacklist
).
The Location
element is a two-letter, uppercase country code for a country that you want to include
in your blacklist
or whitelist
. Include one Location
element for each
country.
CloudFront and MaxMind
both use ISO 3166
country codes. For the current list of
countries and the corresponding codes, see ISO 3166-1-alpha-2
code on the International
Organization for Standardization website. You can also refer to the country list on the CloudFront console,
which includes both country names and codes.
items
- A complex type that contains a Location
element for each country in which you want CloudFront
either to distribute your content (whitelist
) or not distribute your content (
blacklist
).
The Location
element is a two-letter, uppercase country code for a country that you want to
include in your blacklist
or whitelist
. Include one Location
element for each country.
CloudFront and MaxMind
both use ISO 3166
country codes. For the current list of
countries and the corresponding codes, see ISO 3166-1-alpha-2
code on the International
Organization for Standardization website. You can also refer to the country list on the CloudFront
console, which includes both country names and codes.
public String toString()
toString
in class Object
Object.toString()
public GeoRestriction clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.