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:
  • Constructor Details

    • DataRetrievalRule

      public DataRetrievalRule()
  • Method Details

    • 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 to BytesPerHour 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 to BytesPerHour 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 to BytesPerHour 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 to BytesPerHour 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 to BytesPerHour 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 to BytesPerHour 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public DataRetrievalRule clone()
      Overrides:
      clone in class Object