public class ModifyDBSnapshotAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
ModifyDBSnapshotAttribute operation
.
Adds an attribute and values to, or removes an attribute and values from a manual DB snapshot.
To share a manual DB snapshot with other AWS accounts, specify
restore
as the AttributeName
and use the
ValuesToAdd
parameter to add a list of the AWS account
ids that are authorized to retore the manual DB snapshot. Uses the
value all
to make the manual DB snapshot public and can
by copied or restored by all AWS accounts. Do not add the
all
value for any manual DB snapshots that contain
private information that you do not want to be available to all AWS
accounts.
To view which AWS accounts have access to copy or restore a manual DB snapshot, or whether a manual DB snapshot public or private, use the DescribeDBSnapshotAttributes API.
If the manual DB snapshot is encrypted, it cannot be shared.
NOOP
Constructor and Description |
---|
ModifyDBSnapshotAttributeRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyDBSnapshotAttributeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAttributeName()
The name of the DB snapshot attribute to modify.
|
String |
getDBSnapshotIdentifier()
The identifier for the DB snapshot to modify the attributes for.
|
List<String> |
getValuesToAdd()
A list of DB snapshot attributes to add to the attribute specified by
AttributeName . |
List<String> |
getValuesToRemove()
A list of DB snapshot attributes to remove from the attribute
specified by
AttributeName . |
int |
hashCode() |
void |
setAttributeName(String attributeName)
The name of the DB snapshot attribute to modify.
|
void |
setDBSnapshotIdentifier(String dBSnapshotIdentifier)
The identifier for the DB snapshot to modify the attributes for.
|
void |
setValuesToAdd(Collection<String> valuesToAdd)
A list of DB snapshot attributes to add to the attribute specified by
AttributeName . |
void |
setValuesToRemove(Collection<String> valuesToRemove)
A list of DB snapshot attributes to remove from the attribute
specified by
AttributeName . |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifyDBSnapshotAttributeRequest |
withAttributeName(String attributeName)
The name of the DB snapshot attribute to modify.
|
ModifyDBSnapshotAttributeRequest |
withDBSnapshotIdentifier(String dBSnapshotIdentifier)
The identifier for the DB snapshot to modify the attributes for.
|
ModifyDBSnapshotAttributeRequest |
withValuesToAdd(Collection<String> valuesToAdd)
A list of DB snapshot attributes to add to the attribute specified by
AttributeName . |
ModifyDBSnapshotAttributeRequest |
withValuesToAdd(String... valuesToAdd)
A list of DB snapshot attributes to add to the attribute specified by
AttributeName . |
ModifyDBSnapshotAttributeRequest |
withValuesToRemove(Collection<String> valuesToRemove)
A list of DB snapshot attributes to remove from the attribute
specified by
AttributeName . |
ModifyDBSnapshotAttributeRequest |
withValuesToRemove(String... valuesToRemove)
A list of DB snapshot attributes to remove from the attribute
specified by
AttributeName . |
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public String getDBSnapshotIdentifier()
public void setDBSnapshotIdentifier(String dBSnapshotIdentifier)
dBSnapshotIdentifier
- The identifier for the DB snapshot to modify the attributes for.public ModifyDBSnapshotAttributeRequest withDBSnapshotIdentifier(String dBSnapshotIdentifier)
Returns a reference to this object so that method calls can be chained together.
dBSnapshotIdentifier
- The identifier for the DB snapshot to modify the attributes for.public String getAttributeName()
To manage
authorization for other AWS accounts to copy or restore a manual DB
snapshot, this value is restore
.
To manage
authorization for other AWS accounts to copy or restore a manual DB
snapshot, this value is restore
.
public void setAttributeName(String attributeName)
To manage
authorization for other AWS accounts to copy or restore a manual DB
snapshot, this value is restore
.
attributeName
- The name of the DB snapshot attribute to modify. To manage
authorization for other AWS accounts to copy or restore a manual DB
snapshot, this value is restore
.
public ModifyDBSnapshotAttributeRequest withAttributeName(String attributeName)
To manage
authorization for other AWS accounts to copy or restore a manual DB
snapshot, this value is restore
.
Returns a reference to this object so that method calls can be chained together.
attributeName
- The name of the DB snapshot attribute to modify. To manage
authorization for other AWS accounts to copy or restore a manual DB
snapshot, this value is restore
.
public List<String> getValuesToAdd()
AttributeName
. To authorize other AWS Accounts to copy
or restore a manual snapshot, this is one or more AWS account
identifiers, or all
to make the manual DB snapshot
restorable by any AWS account. Do not add the all
value
for any manual DB snapshots that contain private information that you
do not want to be available to all AWS accounts.
AttributeName
. To authorize other AWS Accounts to copy
or restore a manual snapshot, this is one or more AWS account
identifiers, or all
to make the manual DB snapshot
restorable by any AWS account. Do not add the all
value
for any manual DB snapshots that contain private information that you
do not want to be available to all AWS accounts.
public void setValuesToAdd(Collection<String> valuesToAdd)
AttributeName
. To authorize other AWS Accounts to copy
or restore a manual snapshot, this is one or more AWS account
identifiers, or all
to make the manual DB snapshot
restorable by any AWS account. Do not add the all
value
for any manual DB snapshots that contain private information that you
do not want to be available to all AWS accounts.
valuesToAdd
- A list of DB snapshot attributes to add to the attribute specified by
AttributeName
. To authorize other AWS Accounts to copy
or restore a manual snapshot, this is one or more AWS account
identifiers, or all
to make the manual DB snapshot
restorable by any AWS account. Do not add the all
value
for any manual DB snapshots that contain private information that you
do not want to be available to all AWS accounts.
public ModifyDBSnapshotAttributeRequest withValuesToAdd(String... valuesToAdd)
AttributeName
. To authorize other AWS Accounts to copy
or restore a manual snapshot, this is one or more AWS account
identifiers, or all
to make the manual DB snapshot
restorable by any AWS account. Do not add the all
value
for any manual DB snapshots that contain private information that you
do not want to be available to all AWS accounts.
NOTE: This method appends the values to the existing list (if
any). Use setValuesToAdd(java.util.Collection)
or withValuesToAdd(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
valuesToAdd
- A list of DB snapshot attributes to add to the attribute specified by
AttributeName
. To authorize other AWS Accounts to copy
or restore a manual snapshot, this is one or more AWS account
identifiers, or all
to make the manual DB snapshot
restorable by any AWS account. Do not add the all
value
for any manual DB snapshots that contain private information that you
do not want to be available to all AWS accounts.
public ModifyDBSnapshotAttributeRequest withValuesToAdd(Collection<String> valuesToAdd)
AttributeName
. To authorize other AWS Accounts to copy
or restore a manual snapshot, this is one or more AWS account
identifiers, or all
to make the manual DB snapshot
restorable by any AWS account. Do not add the all
value
for any manual DB snapshots that contain private information that you
do not want to be available to all AWS accounts.
Returns a reference to this object so that method calls can be chained together.
valuesToAdd
- A list of DB snapshot attributes to add to the attribute specified by
AttributeName
. To authorize other AWS Accounts to copy
or restore a manual snapshot, this is one or more AWS account
identifiers, or all
to make the manual DB snapshot
restorable by any AWS account. Do not add the all
value
for any manual DB snapshots that contain private information that you
do not want to be available to all AWS accounts.
public List<String> getValuesToRemove()
AttributeName
. To remove authorization
for other AWS Accounts to copy or restore a manual snapshot, this is
one or more AWS account identifiers, or all
to remove
authorization for any AWS account to copy or restore the DB snapshot.
If you specify all
, AWS accounts that have their account
identifier explicitly added to the restore
attribute can
still copy or restore the manual DB snapshot.
AttributeName
. To remove authorization
for other AWS Accounts to copy or restore a manual snapshot, this is
one or more AWS account identifiers, or all
to remove
authorization for any AWS account to copy or restore the DB snapshot.
If you specify all
, AWS accounts that have their account
identifier explicitly added to the restore
attribute can
still copy or restore the manual DB snapshot.
public void setValuesToRemove(Collection<String> valuesToRemove)
AttributeName
. To remove authorization
for other AWS Accounts to copy or restore a manual snapshot, this is
one or more AWS account identifiers, or all
to remove
authorization for any AWS account to copy or restore the DB snapshot.
If you specify all
, AWS accounts that have their account
identifier explicitly added to the restore
attribute can
still copy or restore the manual DB snapshot.
valuesToRemove
- A list of DB snapshot attributes to remove from the attribute
specified by AttributeName
. To remove authorization
for other AWS Accounts to copy or restore a manual snapshot, this is
one or more AWS account identifiers, or all
to remove
authorization for any AWS account to copy or restore the DB snapshot.
If you specify all
, AWS accounts that have their account
identifier explicitly added to the restore
attribute can
still copy or restore the manual DB snapshot.
public ModifyDBSnapshotAttributeRequest withValuesToRemove(String... valuesToRemove)
AttributeName
. To remove authorization
for other AWS Accounts to copy or restore a manual snapshot, this is
one or more AWS account identifiers, or all
to remove
authorization for any AWS account to copy or restore the DB snapshot.
If you specify all
, AWS accounts that have their account
identifier explicitly added to the restore
attribute can
still copy or restore the manual DB snapshot.
NOTE: This method appends the values to the existing list (if
any). Use setValuesToRemove(java.util.Collection)
or withValuesToRemove(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
valuesToRemove
- A list of DB snapshot attributes to remove from the attribute
specified by AttributeName
. To remove authorization
for other AWS Accounts to copy or restore a manual snapshot, this is
one or more AWS account identifiers, or all
to remove
authorization for any AWS account to copy or restore the DB snapshot.
If you specify all
, AWS accounts that have their account
identifier explicitly added to the restore
attribute can
still copy or restore the manual DB snapshot.
public ModifyDBSnapshotAttributeRequest withValuesToRemove(Collection<String> valuesToRemove)
AttributeName
. To remove authorization
for other AWS Accounts to copy or restore a manual snapshot, this is
one or more AWS account identifiers, or all
to remove
authorization for any AWS account to copy or restore the DB snapshot.
If you specify all
, AWS accounts that have their account
identifier explicitly added to the restore
attribute can
still copy or restore the manual DB snapshot.
Returns a reference to this object so that method calls can be chained together.
valuesToRemove
- A list of DB snapshot attributes to remove from the attribute
specified by AttributeName
. To remove authorization
for other AWS Accounts to copy or restore a manual snapshot, this is
one or more AWS account identifiers, or all
to remove
authorization for any AWS account to copy or restore the DB snapshot.
If you specify all
, AWS accounts that have their account
identifier explicitly added to the restore
attribute can
still copy or restore the manual DB snapshot.
public String toString()
toString
in class Object
Object.toString()
public ModifyDBSnapshotAttributeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.