/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.rds.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Contains the results of a successful call to the DescribeDBSnapshotAttributes
API action.
*
* Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts to copy or restore a manual DB
* snapshot. For more information, see the ModifyDBSnapshotAttribute
API action.
*
* The identifier of the manual DB snapshot that the attributes apply to. *
*/ private String dBSnapshotIdentifier; /** ** The list of attributes and values for the manual DB snapshot. *
*/ private com.amazonaws.internal.SdkInternalList* The identifier of the manual DB snapshot that the attributes apply to. *
* * @param dBSnapshotIdentifier * The identifier of the manual DB snapshot that the attributes apply to. */ public void setDBSnapshotIdentifier(String dBSnapshotIdentifier) { this.dBSnapshotIdentifier = dBSnapshotIdentifier; } /** ** The identifier of the manual DB snapshot that the attributes apply to. *
* * @return The identifier of the manual DB snapshot that the attributes apply to. */ public String getDBSnapshotIdentifier() { return this.dBSnapshotIdentifier; } /** ** The identifier of the manual DB snapshot that the attributes apply to. *
* * @param dBSnapshotIdentifier * The identifier of the manual DB snapshot that the attributes apply to. * @return Returns a reference to this object so that method calls can be chained together. */ public DBSnapshotAttributesResult withDBSnapshotIdentifier(String dBSnapshotIdentifier) { setDBSnapshotIdentifier(dBSnapshotIdentifier); return this; } /** ** The list of attributes and values for the manual DB snapshot. *
* * @return The list of attributes and values for the manual DB snapshot. */ public java.util.List* The list of attributes and values for the manual DB snapshot. *
* * @param dBSnapshotAttributes * The list of attributes and values for the manual DB snapshot. */ public void setDBSnapshotAttributes(java.util.Collection* The list of attributes and values for the manual DB snapshot. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDBSnapshotAttributes(java.util.Collection)} or {@link #withDBSnapshotAttributes(java.util.Collection)} * if you want to override the existing values. *
* * @param dBSnapshotAttributes * The list of attributes and values for the manual DB snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public DBSnapshotAttributesResult withDBSnapshotAttributes(DBSnapshotAttribute... dBSnapshotAttributes) { if (this.dBSnapshotAttributes == null) { setDBSnapshotAttributes(new com.amazonaws.internal.SdkInternalList* The list of attributes and values for the manual DB snapshot. *
* * @param dBSnapshotAttributes * The list of attributes and values for the manual DB snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public DBSnapshotAttributesResult withDBSnapshotAttributes(java.util.Collection