@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataRetrievalPolicy extends Object implements Serializable, Cloneable, StructuredPojo
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 | 
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given  
ProtocolMarshaller. | 
void | 
setRules(Collection<DataRetrievalRule> rules)
 The policy rule. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
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 ObjectObject.toString()public DataRetrievalPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.