Class DBSnapshotAttribute
- All Implemented Interfaces:
Serializable
,Cloneable
Contains the name and values of a manual DB snapshot attribute
Manual DB snapshot attributes are used to authorize other AWS accounts to restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute API.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The name of the manual DB snapshot attribute.The value(s) for the manual DB snapshot attribute.int
hashCode()
void
setAttributeName
(String attributeName) The name of the manual DB snapshot attribute.void
setAttributeValues
(Collection<String> attributeValues) The value(s) for the manual DB snapshot attribute.toString()
Returns a string representation of this object; useful for testing and debugging.withAttributeName
(String attributeName) The name of the manual DB snapshot attribute.withAttributeValues
(String... attributeValues) The value(s) for the manual DB snapshot attribute.withAttributeValues
(Collection<String> attributeValues) The value(s) for the manual DB snapshot attribute.
-
Constructor Details
-
DBSnapshotAttribute
public DBSnapshotAttribute()
-
-
Method Details
-
setAttributeName
The name of the manual DB snapshot attribute.
An attribute name of
restore
applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.- Parameters:
attributeName
- The name of the manual DB snapshot attribute.An attribute name of
restore
applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.
-
getAttributeName
The name of the manual DB snapshot attribute.
An attribute name of
restore
applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.- Returns:
- The name of the manual DB snapshot attribute.
An attribute name of
restore
applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.
-
withAttributeName
The name of the manual DB snapshot attribute.
An attribute name of
restore
applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.- Parameters:
attributeName
- The name of the manual DB snapshot attribute.An attribute name of
restore
applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttributeValues
The value(s) for the manual DB snapshot attribute.
If the
AttributeName
field isrestore
, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value ofall
is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.- Returns:
- The value(s) for the manual DB snapshot attribute.
If the
AttributeName
field isrestore
, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value ofall
is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.
-
setAttributeValues
The value(s) for the manual DB snapshot attribute.
If the
AttributeName
field isrestore
, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value ofall
is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.- Parameters:
attributeValues
- The value(s) for the manual DB snapshot attribute.If the
AttributeName
field isrestore
, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value ofall
is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.
-
withAttributeValues
The value(s) for the manual DB snapshot attribute.
If the
AttributeName
field isrestore
, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value ofall
is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.NOTE: This method appends the values to the existing list (if any). Use
setAttributeValues(java.util.Collection)
orwithAttributeValues(java.util.Collection)
if you want to override the existing values.- Parameters:
attributeValues
- The value(s) for the manual DB snapshot attribute.If the
AttributeName
field isrestore
, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value ofall
is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAttributeValues
The value(s) for the manual DB snapshot attribute.
If the
AttributeName
field isrestore
, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value ofall
is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.- Parameters:
attributeValues
- The value(s) for the manual DB snapshot attribute.If the
AttributeName
field isrestore
, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value ofall
is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-