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 DataRetrievalRuleclone()booleanequals(Object obj)LonggetBytesPerHour()The maximum number of bytes that can be retrieved in an hour.StringgetStrategy()The type of data retrieval policy to set.inthashCode()voidsetBytesPerHour(Long bytesPerHour)The maximum number of bytes that can be retrieved in an hour.voidsetStrategy(String strategy)The type of data retrieval policy to set.StringtoString()Returns a string representation of this object; useful for testing and debugging.DataRetrievalRulewithBytesPerHour(Long bytesPerHour)The maximum number of bytes that can be retrieved in an hour.DataRetrievalRulewithStrategy(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 toBytesPerHourand 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 toBytesPerHourand 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 toBytesPerHourand 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 toBytesPerHourand 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 toBytesPerHourand 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 toBytesPerHourand 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DataRetrievalRule clone()
-
-