Class ModifyDBSnapshotAttributeRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.rds.model.ModifyDBSnapshotAttributeRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class ModifyDBSnapshotAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ModifyDBSnapshotAttributeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifyDBSnapshotAttributeRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAttributeName()The name of the DB snapshot attribute to modify.StringgetDBSnapshotIdentifier()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 byAttributeName.List<String>getValuesToRemove()A list of DB snapshot attributes to remove from the attribute specified byAttributeName.inthashCode()voidsetAttributeName(String attributeName)The name of the DB snapshot attribute to modify.voidsetDBSnapshotIdentifier(String dBSnapshotIdentifier)The identifier for the DB snapshot to modify the attributes for.voidsetValuesToAdd(Collection<String> valuesToAdd)A list of DB snapshot attributes to add to the attribute specified byAttributeName.voidsetValuesToRemove(Collection<String> valuesToRemove)A list of DB snapshot attributes to remove from the attribute specified byAttributeName.StringtoString()Returns a string representation of this object; useful for testing and debugging.ModifyDBSnapshotAttributeRequestwithAttributeName(String attributeName)The name of the DB snapshot attribute to modify.ModifyDBSnapshotAttributeRequestwithDBSnapshotIdentifier(String dBSnapshotIdentifier)The identifier for the DB snapshot to modify the attributes for.ModifyDBSnapshotAttributeRequestwithValuesToAdd(String... valuesToAdd)A list of DB snapshot attributes to add to the attribute specified byAttributeName.ModifyDBSnapshotAttributeRequestwithValuesToAdd(Collection<String> valuesToAdd)A list of DB snapshot attributes to add to the attribute specified byAttributeName.ModifyDBSnapshotAttributeRequestwithValuesToRemove(String... valuesToRemove)A list of DB snapshot attributes to remove from the attribute specified byAttributeName.ModifyDBSnapshotAttributeRequestwithValuesToRemove(Collection<String> valuesToRemove)A list of DB snapshot attributes to remove from the attribute specified byAttributeName.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setDBSnapshotIdentifier
public void setDBSnapshotIdentifier(String dBSnapshotIdentifier)
The identifier for the DB snapshot to modify the attributes for.
- Parameters:
dBSnapshotIdentifier- The identifier for the DB snapshot to modify the attributes for.
-
getDBSnapshotIdentifier
public String getDBSnapshotIdentifier()
The identifier for the DB snapshot to modify the attributes for.
- Returns:
- The identifier for the DB snapshot to modify the attributes for.
-
withDBSnapshotIdentifier
public ModifyDBSnapshotAttributeRequest withDBSnapshotIdentifier(String dBSnapshotIdentifier)
The identifier for the DB snapshot to modify the attributes for.
- Parameters:
dBSnapshotIdentifier- The identifier for the DB snapshot to modify the attributes for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAttributeName
public void setAttributeName(String 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.- Parameters:
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.
-
getAttributeName
public String getAttributeName()
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.- Returns:
- 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.
-
withAttributeName
public ModifyDBSnapshotAttributeRequest withAttributeName(String 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getValuesToAdd
public List<String> getValuesToAdd()
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
allto make the manual DB snapshot restorable by any AWS account. Do not add theallvalue for any manual DB snapshots that contain private information that you do not want to be available to all AWS accounts.- Returns:
- 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
allto make the manual DB snapshot restorable by any AWS account. Do not add theallvalue for any manual DB snapshots that contain private information that you do not want to be available to all AWS accounts.
-
setValuesToAdd
public void setValuesToAdd(Collection<String> 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
allto make the manual DB snapshot restorable by any AWS account. Do not add theallvalue for any manual DB snapshots that contain private information that you do not want to be available to all AWS accounts.- Parameters:
valuesToAdd- A list of DB snapshot attributes to add to the attribute specified byAttributeName.To authorize other AWS Accounts to copy or restore a manual snapshot, this is one or more AWS account identifiers, or
allto make the manual DB snapshot restorable by any AWS account. Do not add theallvalue for any manual DB snapshots that contain private information that you do not want to be available to all AWS accounts.
-
withValuesToAdd
public ModifyDBSnapshotAttributeRequest withValuesToAdd(String... 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
allto make the manual DB snapshot restorable by any AWS account. Do not add theallvalue 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)orwithValuesToAdd(java.util.Collection)if you want to override the existing values.- Parameters:
valuesToAdd- A list of DB snapshot attributes to add to the attribute specified byAttributeName.To authorize other AWS Accounts to copy or restore a manual snapshot, this is one or more AWS account identifiers, or
allto make the manual DB snapshot restorable by any AWS account. Do not add theallvalue for any manual DB snapshots that contain private information that you do not want to be available to all AWS accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withValuesToAdd
public ModifyDBSnapshotAttributeRequest withValuesToAdd(Collection<String> 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
allto make the manual DB snapshot restorable by any AWS account. Do not add theallvalue for any manual DB snapshots that contain private information that you do not want to be available to all AWS accounts.- Parameters:
valuesToAdd- A list of DB snapshot attributes to add to the attribute specified byAttributeName.To authorize other AWS Accounts to copy or restore a manual snapshot, this is one or more AWS account identifiers, or
allto make the manual DB snapshot restorable by any AWS account. Do not add theallvalue for any manual DB snapshots that contain private information that you do not want to be available to all AWS accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getValuesToRemove
public List<String> getValuesToRemove()
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
allto remove authorization for any AWS account to copy or restore the DB snapshot. If you specifyall, AWS accounts that have their account identifier explicitly added to therestoreattribute can still copy or restore the manual DB snapshot.- Returns:
- 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
allto remove authorization for any AWS account to copy or restore the DB snapshot. If you specifyall, AWS accounts that have their account identifier explicitly added to therestoreattribute can still copy or restore the manual DB snapshot.
-
setValuesToRemove
public void setValuesToRemove(Collection<String> 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
allto remove authorization for any AWS account to copy or restore the DB snapshot. If you specifyall, AWS accounts that have their account identifier explicitly added to therestoreattribute can still copy or restore the manual DB snapshot.- Parameters:
valuesToRemove- A list of DB snapshot attributes to remove from the attribute specified byAttributeName.To remove authorization for other AWS Accounts to copy or restore a manual snapshot, this is one or more AWS account identifiers, or
allto remove authorization for any AWS account to copy or restore the DB snapshot. If you specifyall, AWS accounts that have their account identifier explicitly added to therestoreattribute can still copy or restore the manual DB snapshot.
-
withValuesToRemove
public ModifyDBSnapshotAttributeRequest withValuesToRemove(String... 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
allto remove authorization for any AWS account to copy or restore the DB snapshot. If you specifyall, AWS accounts that have their account identifier explicitly added to therestoreattribute 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)orwithValuesToRemove(java.util.Collection)if you want to override the existing values.- Parameters:
valuesToRemove- A list of DB snapshot attributes to remove from the attribute specified byAttributeName.To remove authorization for other AWS Accounts to copy or restore a manual snapshot, this is one or more AWS account identifiers, or
allto remove authorization for any AWS account to copy or restore the DB snapshot. If you specifyall, AWS accounts that have their account identifier explicitly added to therestoreattribute can still copy or restore the manual DB snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withValuesToRemove
public ModifyDBSnapshotAttributeRequest withValuesToRemove(Collection<String> 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
allto remove authorization for any AWS account to copy or restore the DB snapshot. If you specifyall, AWS accounts that have their account identifier explicitly added to therestoreattribute can still copy or restore the manual DB snapshot.- Parameters:
valuesToRemove- A list of DB snapshot attributes to remove from the attribute specified byAttributeName.To remove authorization for other AWS Accounts to copy or restore a manual snapshot, this is one or more AWS account identifiers, or
allto remove authorization for any AWS account to copy or restore the DB snapshot. If you specifyall, AWS accounts that have their account identifier explicitly added to therestoreattribute can still copy or restore 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ModifyDBSnapshotAttributeRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-