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

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.

See Also:

AWS * API Reference

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

The identifier of the manual DB snapshot that the attributes apply to.

*/ inline const Aws::String& GetDBSnapshotIdentifier() const{ return m_dBSnapshotIdentifier; } /** *

The identifier of the manual DB snapshot that the attributes apply to.

*/ inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; } /** *

The identifier of the manual DB snapshot that the attributes apply to.

*/ inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; } /** *

The identifier of the manual DB snapshot that the attributes apply to.

*/ inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = std::move(value); } /** *

The identifier of the manual DB snapshot that the attributes apply to.

*/ inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); } /** *

The identifier of the manual DB snapshot that the attributes apply to.

*/ inline DBSnapshotAttributesResult& WithDBSnapshotIdentifier(const Aws::String& value) { SetDBSnapshotIdentifier(value); return *this;} /** *

The identifier of the manual DB snapshot that the attributes apply to.

*/ inline DBSnapshotAttributesResult& WithDBSnapshotIdentifier(Aws::String&& value) { SetDBSnapshotIdentifier(std::move(value)); return *this;} /** *

The identifier of the manual DB snapshot that the attributes apply to.

*/ inline DBSnapshotAttributesResult& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;} /** *

The list of attributes and values for the manual DB snapshot.

*/ inline const Aws::Vector& GetDBSnapshotAttributes() const{ return m_dBSnapshotAttributes; } /** *

The list of attributes and values for the manual DB snapshot.

*/ inline bool DBSnapshotAttributesHasBeenSet() const { return m_dBSnapshotAttributesHasBeenSet; } /** *

The list of attributes and values for the manual DB snapshot.

*/ inline void SetDBSnapshotAttributes(const Aws::Vector& value) { m_dBSnapshotAttributesHasBeenSet = true; m_dBSnapshotAttributes = value; } /** *

The list of attributes and values for the manual DB snapshot.

*/ inline void SetDBSnapshotAttributes(Aws::Vector&& value) { m_dBSnapshotAttributesHasBeenSet = true; m_dBSnapshotAttributes = std::move(value); } /** *

The list of attributes and values for the manual DB snapshot.

*/ inline DBSnapshotAttributesResult& WithDBSnapshotAttributes(const Aws::Vector& value) { SetDBSnapshotAttributes(value); return *this;} /** *

The list of attributes and values for the manual DB snapshot.

*/ inline DBSnapshotAttributesResult& WithDBSnapshotAttributes(Aws::Vector&& value) { SetDBSnapshotAttributes(std::move(value)); return *this;} /** *

The list of attributes and values for the manual DB snapshot.

*/ inline DBSnapshotAttributesResult& AddDBSnapshotAttributes(const DBSnapshotAttribute& value) { m_dBSnapshotAttributesHasBeenSet = true; m_dBSnapshotAttributes.push_back(value); return *this; } /** *

The list of attributes and values for the manual DB snapshot.

*/ inline DBSnapshotAttributesResult& AddDBSnapshotAttributes(DBSnapshotAttribute&& value) { m_dBSnapshotAttributesHasBeenSet = true; m_dBSnapshotAttributes.push_back(std::move(value)); return *this; } private: Aws::String m_dBSnapshotIdentifier; bool m_dBSnapshotIdentifierHasBeenSet = false; Aws::Vector m_dBSnapshotAttributes; bool m_dBSnapshotAttributesHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws