public class DataRetrievalPolicy
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Data retrieval policy.
Modifier and Type | Field and Description |
---|---|
private java.util.List<DataRetrievalRule> |
rules
The policy rule.
|
Constructor and Description |
---|
DataRetrievalPolicy() |
Modifier and Type | Method and Description |
---|---|
DataRetrievalPolicy |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<DataRetrievalRule> |
getRules()
The policy rule.
|
int |
hashCode() |
void |
setRules(java.util.Collection<DataRetrievalRule> rules)
The policy rule.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DataRetrievalPolicy |
withRules(java.util.Collection<DataRetrievalRule> rules)
The policy rule.
|
DataRetrievalPolicy |
withRules(DataRetrievalRule... rules)
The policy rule.
|
private java.util.List<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.
public java.util.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(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DataRetrievalPolicy clone()
clone
in class java.lang.Object