/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Neptune { namespace Model { /** *

Contains the name and values of a manual DB cluster snapshot attribute.

*

Manual DB cluster snapshot attributes are used to authorize other Amazon * accounts to restore a manual DB cluster snapshot. For more information, see the * ModifyDBClusterSnapshotAttribute API action.

See Also:

* AWS * API Reference

*/ class DBClusterSnapshotAttribute { public: AWS_NEPTUNE_API DBClusterSnapshotAttribute(); AWS_NEPTUNE_API DBClusterSnapshotAttribute(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_NEPTUNE_API DBClusterSnapshotAttribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the manual DB cluster snapshot attribute.

The attribute * named restore refers to the list of Amazon accounts that have * permission to copy or restore the manual DB cluster snapshot. For more * information, see the ModifyDBClusterSnapshotAttribute API action.

*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *

The name of the manual DB cluster snapshot attribute.

The attribute * named restore refers to the list of Amazon accounts that have * permission to copy or restore the manual DB cluster snapshot. For more * information, see the ModifyDBClusterSnapshotAttribute API action.

*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *

The name of the manual DB cluster snapshot attribute.

The attribute * named restore refers to the list of Amazon accounts that have * permission to copy or restore the manual DB cluster snapshot. For more * information, see the ModifyDBClusterSnapshotAttribute API action.

*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *

The name of the manual DB cluster snapshot attribute.

The attribute * named restore refers to the list of Amazon accounts that have * permission to copy or restore the manual DB cluster snapshot. For more * information, see the ModifyDBClusterSnapshotAttribute API action.

*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *

The name of the manual DB cluster snapshot attribute.

The attribute * named restore refers to the list of Amazon accounts that have * permission to copy or restore the manual DB cluster snapshot. For more * information, see the ModifyDBClusterSnapshotAttribute API action.

*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *

The name of the manual DB cluster snapshot attribute.

The attribute * named restore refers to the list of Amazon accounts that have * permission to copy or restore the manual DB cluster snapshot. For more * information, see the ModifyDBClusterSnapshotAttribute API action.

*/ inline DBClusterSnapshotAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *

The name of the manual DB cluster snapshot attribute.

The attribute * named restore refers to the list of Amazon accounts that have * permission to copy or restore the manual DB cluster snapshot. For more * information, see the ModifyDBClusterSnapshotAttribute API action.

*/ inline DBClusterSnapshotAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *

The name of the manual DB cluster snapshot attribute.

The attribute * named restore refers to the list of Amazon accounts that have * permission to copy or restore the manual DB cluster snapshot. For more * information, see the ModifyDBClusterSnapshotAttribute API action.

*/ inline DBClusterSnapshotAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} /** *

The value(s) for the manual DB cluster snapshot attribute.

If the * AttributeName field is set to restore, then this * element returns a list of IDs of the Amazon accounts that are authorized to copy * or restore the manual DB cluster snapshot. If a value of all is in * the list, then the manual DB cluster snapshot is public and available for any * Amazon account to copy or restore.

*/ inline const Aws::Vector& GetAttributeValues() const{ return m_attributeValues; } /** *

The value(s) for the manual DB cluster snapshot attribute.

If the * AttributeName field is set to restore, then this * element returns a list of IDs of the Amazon accounts that are authorized to copy * or restore the manual DB cluster snapshot. If a value of all is in * the list, then the manual DB cluster snapshot is public and available for any * Amazon account to copy or restore.

*/ inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; } /** *

The value(s) for the manual DB cluster snapshot attribute.

If the * AttributeName field is set to restore, then this * element returns a list of IDs of the Amazon accounts that are authorized to copy * or restore the manual DB cluster snapshot. If a value of all is in * the list, then the manual DB cluster snapshot is public and available for any * Amazon account to copy or restore.

*/ inline void SetAttributeValues(const Aws::Vector& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; } /** *

The value(s) for the manual DB cluster snapshot attribute.

If the * AttributeName field is set to restore, then this * element returns a list of IDs of the Amazon accounts that are authorized to copy * or restore the manual DB cluster snapshot. If a value of all is in * the list, then the manual DB cluster snapshot is public and available for any * Amazon account to copy or restore.

*/ inline void SetAttributeValues(Aws::Vector&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::move(value); } /** *

The value(s) for the manual DB cluster snapshot attribute.

If the * AttributeName field is set to restore, then this * element returns a list of IDs of the Amazon accounts that are authorized to copy * or restore the manual DB cluster snapshot. If a value of all is in * the list, then the manual DB cluster snapshot is public and available for any * Amazon account to copy or restore.

*/ inline DBClusterSnapshotAttribute& WithAttributeValues(const Aws::Vector& value) { SetAttributeValues(value); return *this;} /** *

The value(s) for the manual DB cluster snapshot attribute.

If the * AttributeName field is set to restore, then this * element returns a list of IDs of the Amazon accounts that are authorized to copy * or restore the manual DB cluster snapshot. If a value of all is in * the list, then the manual DB cluster snapshot is public and available for any * Amazon account to copy or restore.

*/ inline DBClusterSnapshotAttribute& WithAttributeValues(Aws::Vector&& value) { SetAttributeValues(std::move(value)); return *this;} /** *

The value(s) for the manual DB cluster snapshot attribute.

If the * AttributeName field is set to restore, then this * element returns a list of IDs of the Amazon accounts that are authorized to copy * or restore the manual DB cluster snapshot. If a value of all is in * the list, then the manual DB cluster snapshot is public and available for any * Amazon account to copy or restore.

*/ inline DBClusterSnapshotAttribute& AddAttributeValues(const Aws::String& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; } /** *

The value(s) for the manual DB cluster snapshot attribute.

If the * AttributeName field is set to restore, then this * element returns a list of IDs of the Amazon accounts that are authorized to copy * or restore the manual DB cluster snapshot. If a value of all is in * the list, then the manual DB cluster snapshot is public and available for any * Amazon account to copy or restore.

*/ inline DBClusterSnapshotAttribute& AddAttributeValues(Aws::String&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(std::move(value)); return *this; } /** *

The value(s) for the manual DB cluster snapshot attribute.

If the * AttributeName field is set to restore, then this * element returns a list of IDs of the Amazon accounts that are authorized to copy * or restore the manual DB cluster snapshot. If a value of all is in * the list, then the manual DB cluster snapshot is public and available for any * Amazon account to copy or restore.

*/ inline DBClusterSnapshotAttribute& AddAttributeValues(const char* value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; } private: Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; Aws::Vector m_attributeValues; bool m_attributeValuesHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws