Class DBSnapshotAttributesResult

java.lang.Object
com.amazonaws.services.rds.model.DBSnapshotAttributesResult
All Implemented Interfaces:
Serializable, Cloneable

public class DBSnapshotAttributesResult extends Object implements Serializable, Cloneable

Contains the results of a successful call to the DescribeDBSnapshotAttributes API.

Manual DB snapshot attributes are used to authorize other AWS accounts to copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute API.

See Also:
  • Constructor Details

    • DBSnapshotAttributesResult

      public DBSnapshotAttributesResult()
  • Method Details

    • setDBSnapshotIdentifier

      public void setDBSnapshotIdentifier(String dBSnapshotIdentifier)

      The identifier of the manual DB snapshot that the attributes apply to.

      Parameters:
      dBSnapshotIdentifier - The identifier of the manual DB snapshot that the attributes apply to.
    • getDBSnapshotIdentifier

      public String getDBSnapshotIdentifier()

      The identifier of the manual DB snapshot that the attributes apply to.

      Returns:
      The identifier of the manual DB snapshot that the attributes apply to.
    • withDBSnapshotIdentifier

      public DBSnapshotAttributesResult withDBSnapshotIdentifier(String dBSnapshotIdentifier)

      The identifier of the manual DB snapshot that the attributes apply to.

      Parameters:
      dBSnapshotIdentifier - The identifier of the manual DB snapshot that the attributes apply to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDBSnapshotAttributes

      public List<DBSnapshotAttribute> getDBSnapshotAttributes()

      The list of attributes and values for the manual DB snapshot.

      Returns:
      The list of attributes and values for the manual DB snapshot.
    • setDBSnapshotAttributes

      public void setDBSnapshotAttributes(Collection<DBSnapshotAttribute> dBSnapshotAttributes)

      The list of attributes and values for the manual DB snapshot.

      Parameters:
      dBSnapshotAttributes - The list of attributes and values for the manual DB snapshot.
    • withDBSnapshotAttributes

      public DBSnapshotAttributesResult withDBSnapshotAttributes(DBSnapshotAttribute... dBSnapshotAttributes)

      The list of attributes and values for the manual DB snapshot.

      NOTE: This method appends the values to the existing list (if any). Use setDBSnapshotAttributes(java.util.Collection) or withDBSnapshotAttributes(java.util.Collection) if you want to override the existing values.

      Parameters:
      dBSnapshotAttributes - The list of attributes and values for the manual DB snapshot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withDBSnapshotAttributes

      public DBSnapshotAttributesResult withDBSnapshotAttributes(Collection<DBSnapshotAttribute> dBSnapshotAttributes)

      The list of attributes and values for the manual DB snapshot.

      Parameters:
      dBSnapshotAttributes - The list of attributes and values for the manual DB snapshot.
      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

      Overrides:
      clone in class Object