public class DataRetrievalRule extends Object implements Serializable, Cloneable
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 |
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 String getStrategy()
Valid values: BytesPerHour|FreeTier|None
Valid values: BytesPerHour|FreeTier|None
public void setStrategy(String strategy)
Valid values: BytesPerHour|FreeTier|None
strategy
- The type of data retrieval policy to set. Valid values: BytesPerHour|FreeTier|None
public DataRetrievalRule withStrategy(String strategy)
Valid values: BytesPerHour|FreeTier|None
Returns a reference to this object so that method calls can be chained together.
strategy
- The type of data retrieval policy to set. Valid values: BytesPerHour|FreeTier|None
public Long getBytesPerHour()
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 void setBytesPerHour(Long bytesPerHour)
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 DataRetrievalRule withBytesPerHour(Long bytesPerHour)
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.
Returns a reference to this object so that method calls can be chained together.
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()
Copyright © 2015. All rights reserved.