public class DataRetrievalPolicy extends Object implements Serializable, Cloneable
Data retrieval policy.
Constructor and Description |
---|
DataRetrievalPolicy() |
Modifier and Type | Method and Description |
---|---|
DataRetrievalPolicy |
clone() |
boolean |
equals(Object obj) |
List<DataRetrievalRule> |
getRules()
The policy rule.
|
int |
hashCode() |
void |
setRules(Collection<DataRetrievalRule> rules)
The policy rule.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DataRetrievalPolicy |
withRules(Collection<DataRetrievalRule> rules)
The policy rule.
|
DataRetrievalPolicy |
withRules(DataRetrievalRule... rules)
The policy rule.
|
public List<DataRetrievalRule> getRules()
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
public void setRules(Collection<DataRetrievalRule> rules)
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
rules
- The policy rule. Although this is a list type, currently there
must be only one rule, which contains a Strategy field and
optionally a BytesPerHour field.public DataRetrievalPolicy withRules(DataRetrievalRule... rules)
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
NOTE: This method appends the values to the existing list (if
any). Use setRules(java.util.Collection)
or
withRules(java.util.Collection)
if you want to override the
existing values.
rules
- The policy rule. Although this is a list type, currently there
must be only one rule, which contains a Strategy field and
optionally a BytesPerHour field.public DataRetrievalPolicy withRules(Collection<DataRetrievalRule> rules)
The policy rule. Although this is a list type, currently there must be only one rule, which contains a Strategy field and optionally a BytesPerHour field.
rules
- The policy rule. Although this is a list type, currently there
must be only one rule, which contains a Strategy field and
optionally a BytesPerHour field.public String toString()
toString
in class Object
Object.toString()
public DataRetrievalPolicy clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.