public class DBSnapshotAttributesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<DBSnapshotAttribute> |
dBSnapshotAttributes
The list of attributes and values for the manual DB snapshot.
|
private java.lang.String |
dBSnapshotIdentifier
The identifier of the manual DB snapshot that the attributes apply to.
|
Constructor and Description |
---|
DBSnapshotAttributesResult() |
Modifier and Type | Method and Description |
---|---|
DBSnapshotAttributesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<DBSnapshotAttribute> |
getDBSnapshotAttributes()
The list of attributes and values for the manual DB snapshot.
|
java.lang.String |
getDBSnapshotIdentifier()
The identifier of the manual DB snapshot that the attributes apply to.
|
int |
hashCode() |
void |
setDBSnapshotAttributes(java.util.Collection<DBSnapshotAttribute> dBSnapshotAttributes)
The list of attributes and values for the manual DB snapshot.
|
void |
setDBSnapshotIdentifier(java.lang.String dBSnapshotIdentifier)
The identifier of the manual DB snapshot that the attributes apply to.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DBSnapshotAttributesResult |
withDBSnapshotAttributes(java.util.Collection<DBSnapshotAttribute> dBSnapshotAttributes)
The list of attributes and values for the manual DB snapshot.
|
DBSnapshotAttributesResult |
withDBSnapshotAttributes(DBSnapshotAttribute... dBSnapshotAttributes)
The list of attributes and values for the manual DB snapshot.
|
DBSnapshotAttributesResult |
withDBSnapshotIdentifier(java.lang.String dBSnapshotIdentifier)
The identifier of the manual DB snapshot that the attributes apply to.
|
private java.lang.String dBSnapshotIdentifier
The identifier of the manual DB snapshot that the attributes apply to.
private SdkInternalList<DBSnapshotAttribute> dBSnapshotAttributes
The list of attributes and values for the manual DB snapshot.
public void setDBSnapshotIdentifier(java.lang.String dBSnapshotIdentifier)
The identifier of the manual DB snapshot that the attributes apply to.
dBSnapshotIdentifier
- The identifier of the manual DB snapshot that the attributes apply
to.public java.lang.String getDBSnapshotIdentifier()
The identifier of the manual DB snapshot that the attributes apply to.
public DBSnapshotAttributesResult withDBSnapshotIdentifier(java.lang.String dBSnapshotIdentifier)
The identifier of the manual DB snapshot that the attributes apply to.
dBSnapshotIdentifier
- The identifier of the manual DB snapshot that the attributes apply
to.public java.util.List<DBSnapshotAttribute> getDBSnapshotAttributes()
The list of attributes and values for the manual DB snapshot.
public void setDBSnapshotAttributes(java.util.Collection<DBSnapshotAttribute> dBSnapshotAttributes)
The list of attributes and values for the manual DB snapshot.
dBSnapshotAttributes
- The list of attributes and values for the manual DB snapshot.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.
dBSnapshotAttributes
- The list of attributes and values for the manual DB snapshot.public DBSnapshotAttributesResult withDBSnapshotAttributes(java.util.Collection<DBSnapshotAttribute> dBSnapshotAttributes)
The list of attributes and values for the manual DB snapshot.
dBSnapshotAttributes
- The list of attributes and values for the manual DB snapshot.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DBSnapshotAttributesResult clone()
clone
in class java.lang.Object