public class GeoRestriction extends Object implements Serializable, Cloneable
| 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() |
Integer |
getQuantity() |
String |
getRestrictionType() |
int |
hashCode() |
void |
setItems(Collection<String> items) |
void |
setQuantity(Integer quantity) |
void |
setRestrictionType(GeoRestrictionType restrictionType) |
void |
setRestrictionType(String restrictionType) |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GeoRestriction |
withItems(Collection<String> items) |
GeoRestriction |
withItems(String... items)
NOTE: This method appends the values to the existing list (if
any).
|
GeoRestriction |
withQuantity(Integer quantity) |
GeoRestriction |
withRestrictionType(GeoRestrictionType restrictionType) |
GeoRestriction |
withRestrictionType(String restrictionType) |
public GeoRestriction()
public GeoRestriction(String restrictionType)
restrictionType - public GeoRestriction(GeoRestrictionType restrictionType)
restrictionType - public void setRestrictionType(String restrictionType)
restrictionType - GeoRestrictionTypepublic String getRestrictionType()
GeoRestrictionTypepublic GeoRestriction withRestrictionType(String restrictionType)
restrictionType - GeoRestrictionTypepublic void setRestrictionType(GeoRestrictionType restrictionType)
restrictionType - GeoRestrictionTypepublic GeoRestriction withRestrictionType(GeoRestrictionType restrictionType)
restrictionType - GeoRestrictionTypepublic void setQuantity(Integer quantity)
quantity - public Integer getQuantity()
public GeoRestriction withQuantity(Integer quantity)
quantity - public void setItems(Collection<String> items)
items - public GeoRestriction withItems(String... items)
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 - public GeoRestriction withItems(Collection<String> items)
items - public String toString()
toString in class ObjectObject.toString()public GeoRestriction clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.