@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataRetrievalRule extends Object implements Serializable, Cloneable, StructuredPojo
Data retrieval policy rule.
Constructor and Description |
---|
DataRetrievalRule() |
Modifier and Type | Method and Description |
---|---|
DataRetrievalRule |
clone() |
boolean |
equals(Object obj) |
Long |
getBytesPerHour()
The maximum number of bytes that can be retrieved in an hour.
|
String |
getStrategy()
The type of data retrieval policy to set.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBytesPerHour(Long bytesPerHour)
The maximum number of bytes that can be retrieved in an hour.
|
void |
setStrategy(String strategy)
The type of data retrieval policy to set.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DataRetrievalRule |
withBytesPerHour(Long bytesPerHour)
The maximum number of bytes that can be retrieved in an hour.
|
DataRetrievalRule |
withStrategy(String strategy)
The type of data retrieval policy to set.
|
public void setStrategy(String strategy)
The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
strategy
- The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
public String getStrategy()
The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
Valid values: BytesPerHour|FreeTier|None
public DataRetrievalRule withStrategy(String strategy)
The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
strategy
- The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
public void setBytesPerHour(Long bytesPerHour)
The maximum number of bytes that can be retrieved in an hour.
This field is required only if the value of the Strategy field is BytesPerHour
. Your PUT operation
will be rejected if the Strategy field is not set to BytesPerHour
and you set this field.
bytesPerHour
- The maximum number of bytes that can be retrieved in an hour.
This field is required only if the value of the Strategy field is BytesPerHour
. Your PUT
operation will be rejected if the Strategy field is not set to BytesPerHour
and you set this
field.
public Long getBytesPerHour()
The maximum number of bytes that can be retrieved in an hour.
This field is required only if the value of the Strategy field is BytesPerHour
. Your PUT operation
will be rejected if the Strategy field is not set to BytesPerHour
and you set this field.
This field is required only if the value of the Strategy field is BytesPerHour
. Your PUT
operation will be rejected if the Strategy field is not set to BytesPerHour
and you set this
field.
public DataRetrievalRule withBytesPerHour(Long bytesPerHour)
The maximum number of bytes that can be retrieved in an hour.
This field is required only if the value of the Strategy field is BytesPerHour
. Your PUT operation
will be rejected if the Strategy field is not set to BytesPerHour
and you set this field.
bytesPerHour
- The maximum number of bytes that can be retrieved in an hour.
This field is required only if the value of the Strategy field is BytesPerHour
. Your PUT
operation will be rejected if the Strategy field is not set to BytesPerHour
and you set this
field.
public String toString()
toString
in class Object
Object.toString()
public DataRetrievalRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.