Class GetVaultLockResult

java.lang.Object
com.amazonaws.services.glacier.model.GetVaultLockResult
All Implemented Interfaces:
Serializable, Cloneable

public class GetVaultLockResult extends Object implements Serializable, Cloneable

Contains the Amazon Glacier response to your request.

See Also:
  • Constructor Details

    • GetVaultLockResult

      public GetVaultLockResult()
  • Method Details

    • setPolicy

      public void setPolicy(String policy)

      The vault lock policy as a JSON string, which uses "\" as an escape character.

      Parameters:
      policy - The vault lock policy as a JSON string, which uses "\" as an escape character.
    • getPolicy

      public String getPolicy()

      The vault lock policy as a JSON string, which uses "\" as an escape character.

      Returns:
      The vault lock policy as a JSON string, which uses "\" as an escape character.
    • withPolicy

      public GetVaultLockResult withPolicy(String policy)

      The vault lock policy as a JSON string, which uses "\" as an escape character.

      Parameters:
      policy - The vault lock policy as a JSON string, which uses "\" as an escape character.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setState

      public void setState(String state)

      The state of the vault lock. InProgress or Locked.

      Parameters:
      state - The state of the vault lock. InProgress or Locked.
    • getState

      public String getState()

      The state of the vault lock. InProgress or Locked.

      Returns:
      The state of the vault lock. InProgress or Locked.
    • withState

      public GetVaultLockResult withState(String state)

      The state of the vault lock. InProgress or Locked.

      Parameters:
      state - The state of the vault lock. InProgress or Locked.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setExpirationDate

      public void setExpirationDate(String expirationDate)

      The UTC date and time at which the lock ID expires. This value can be null if the vault lock is in a Locked state.

      Parameters:
      expirationDate - The UTC date and time at which the lock ID expires. This value can be null if the vault lock is in a Locked state.
    • getExpirationDate

      public String getExpirationDate()

      The UTC date and time at which the lock ID expires. This value can be null if the vault lock is in a Locked state.

      Returns:
      The UTC date and time at which the lock ID expires. This value can be null if the vault lock is in a Locked state.
    • withExpirationDate

      public GetVaultLockResult withExpirationDate(String expirationDate)

      The UTC date and time at which the lock ID expires. This value can be null if the vault lock is in a Locked state.

      Parameters:
      expirationDate - The UTC date and time at which the lock ID expires. This value can be null if the vault lock is in a Locked state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCreationDate

      public void setCreationDate(String creationDate)

      The UTC date and time at which the vault lock was put into the InProgress state.

      Parameters:
      creationDate - The UTC date and time at which the vault lock was put into the InProgress state.
    • getCreationDate

      public String getCreationDate()

      The UTC date and time at which the vault lock was put into the InProgress state.

      Returns:
      The UTC date and time at which the vault lock was put into the InProgress state.
    • withCreationDate

      public GetVaultLockResult withCreationDate(String creationDate)

      The UTC date and time at which the vault lock was put into the InProgress state.

      Parameters:
      creationDate - The UTC date and time at which the vault lock was put into the InProgress state.
      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 GetVaultLockResult clone()
      Overrides:
      clone in class Object