public class DataRetrievalRule
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Data retrieval policy rule.
Modifier and Type | Field and Description |
---|---|
private java.lang.Long |
bytesPerHour
The maximum number of bytes that can be retrieved in an hour.
|
private java.lang.String |
strategy
The type of data retrieval policy to set.
|
Constructor and Description |
---|
DataRetrievalRule() |
Modifier and Type | Method and Description |
---|---|
DataRetrievalRule |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getBytesPerHour()
The maximum number of bytes that can be retrieved in an hour.
|
java.lang.String |
getStrategy()
The type of data retrieval policy to set.
|
int |
hashCode() |
void |
setBytesPerHour(java.lang.Long bytesPerHour)
The maximum number of bytes that can be retrieved in an hour.
|
void |
setStrategy(java.lang.String strategy)
The type of data retrieval policy to set.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DataRetrievalRule |
withBytesPerHour(java.lang.Long bytesPerHour)
The maximum number of bytes that can be retrieved in an hour.
|
DataRetrievalRule |
withStrategy(java.lang.String strategy)
The type of data retrieval policy to set.
|
private java.lang.String strategy
The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
private java.lang.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.
public void setStrategy(java.lang.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 java.lang.String getStrategy()
The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
Valid values: BytesPerHour|FreeTier|None
public DataRetrievalRule withStrategy(java.lang.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(java.lang.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 java.lang.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(java.lang.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 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 DataRetrievalRule clone()
clone
in class java.lang.Object