/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the rds-2014-10-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.RDS.Model
{
///
/// Contains the name and values of a manual DB snapshot attribute
///
///
///
/// Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts
/// to restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
/// API.
///
///
public partial class DBSnapshotAttribute
{
private string _attributeName;
private List _attributeValues = new List();
///
/// Gets and sets the property AttributeName.
///
/// The name of the manual DB snapshot attribute.
///
///
///
/// The attribute named restore
refers to the list of Amazon Web Services
/// accounts that have permission to copy or restore the manual DB cluster snapshot. For
/// more information, see the ModifyDBSnapshotAttribute
API action.
///
///
public string AttributeName
{
get { return this._attributeName; }
set { this._attributeName = value; }
}
// Check to see if AttributeName property is set
internal bool IsSetAttributeName()
{
return this._attributeName != null;
}
///
/// Gets and sets the property AttributeValues.
///
/// The value or values for the manual DB snapshot attribute.
///
///
///
/// If the AttributeName
field is set to restore
, then this
/// element returns a list of IDs of the Amazon Web Services accounts that are authorized
/// to copy or restore the manual DB snapshot. If a value of all
is in the
/// list, then the manual DB snapshot is public and available for any Amazon Web Services
/// account to copy or restore.
///
///
public List AttributeValues
{
get { return this._attributeValues; }
set { this._attributeValues = value; }
}
// Check to see if AttributeValues property is set
internal bool IsSetAttributeValues()
{
return this._attributeValues != null && this._attributeValues.Count > 0;
}
}
}