Class DataRetrievalPolicy
- java.lang.Object
-
- com.amazonaws.services.glacier.model.DataRetrievalPolicy
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DataRetrievalPolicy extends Object implements Serializable, Cloneable
Data retrieval policy.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataRetrievalPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(DataRetrievalRule... rules)
The policy rule.DataRetrievalPolicy
withRules(Collection<DataRetrievalRule> rules)
The policy rule.
-
-
-
Method Detail
-
getRules
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.
- Returns:
- 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.
-
setRules
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.
- Parameters:
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.
-
withRules
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)
orwithRules(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRules
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.
- Parameters:
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.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DataRetrievalPolicy clone()
-
-