Class DataRetrievalRule
- java.lang.Object
-
- com.amazonaws.services.glacier.model.DataRetrievalRule
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DataRetrievalRule extends Object implements Serializable, Cloneable
Data retrieval policy rule.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataRetrievalRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setStrategy
public void setStrategy(String strategy)
The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
- Parameters:
strategy
- The type of data retrieval policy to set.Valid values: BytesPerHour|FreeTier|None
-
getStrategy
public String getStrategy()
The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
- Returns:
- The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
-
withStrategy
public DataRetrievalRule withStrategy(String strategy)
The type of data retrieval policy to set.
Valid values: BytesPerHour|FreeTier|None
- Parameters:
strategy
- The type of data retrieval policy to set.Valid values: BytesPerHour|FreeTier|None
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBytesPerHour
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 toBytesPerHour
and you set this field.- Parameters:
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 toBytesPerHour
and you set this field.
-
getBytesPerHour
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 toBytesPerHour
and you set this field.- Returns:
- 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 toBytesPerHour
and you set this field.
-
withBytesPerHour
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 toBytesPerHour
and you set this field.- Parameters:
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 toBytesPerHour
and you set this 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 DataRetrievalRule clone()
-
-