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

Describes an Amazon Web Services account authorized to restore a * snapshot.

See Also:

AWS * API Reference

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

The identifier of an Amazon Web Services account authorized to restore a * snapshot.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The identifier of an Amazon Web Services account authorized to restore a * snapshot.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The identifier of an Amazon Web Services account authorized to restore a * snapshot.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The identifier of an Amazon Web Services account authorized to restore a * snapshot.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The identifier of an Amazon Web Services account authorized to restore a * snapshot.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The identifier of an Amazon Web Services account authorized to restore a * snapshot.

*/ inline AccountWithRestoreAccess& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The identifier of an Amazon Web Services account authorized to restore a * snapshot.

*/ inline AccountWithRestoreAccess& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The identifier of an Amazon Web Services account authorized to restore a * snapshot.

*/ inline AccountWithRestoreAccess& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The identifier of an Amazon Web Services support account authorized to * restore a snapshot. For Amazon Web Services Support, the identifier is * amazon-redshift-support.

*/ inline const Aws::String& GetAccountAlias() const{ return m_accountAlias; } /** *

The identifier of an Amazon Web Services support account authorized to * restore a snapshot. For Amazon Web Services Support, the identifier is * amazon-redshift-support.

*/ inline bool AccountAliasHasBeenSet() const { return m_accountAliasHasBeenSet; } /** *

The identifier of an Amazon Web Services support account authorized to * restore a snapshot. For Amazon Web Services Support, the identifier is * amazon-redshift-support.

*/ inline void SetAccountAlias(const Aws::String& value) { m_accountAliasHasBeenSet = true; m_accountAlias = value; } /** *

The identifier of an Amazon Web Services support account authorized to * restore a snapshot. For Amazon Web Services Support, the identifier is * amazon-redshift-support.

*/ inline void SetAccountAlias(Aws::String&& value) { m_accountAliasHasBeenSet = true; m_accountAlias = std::move(value); } /** *

The identifier of an Amazon Web Services support account authorized to * restore a snapshot. For Amazon Web Services Support, the identifier is * amazon-redshift-support.

*/ inline void SetAccountAlias(const char* value) { m_accountAliasHasBeenSet = true; m_accountAlias.assign(value); } /** *

The identifier of an Amazon Web Services support account authorized to * restore a snapshot. For Amazon Web Services Support, the identifier is * amazon-redshift-support.

*/ inline AccountWithRestoreAccess& WithAccountAlias(const Aws::String& value) { SetAccountAlias(value); return *this;} /** *

The identifier of an Amazon Web Services support account authorized to * restore a snapshot. For Amazon Web Services Support, the identifier is * amazon-redshift-support.

*/ inline AccountWithRestoreAccess& WithAccountAlias(Aws::String&& value) { SetAccountAlias(std::move(value)); return *this;} /** *

The identifier of an Amazon Web Services support account authorized to * restore a snapshot. For Amazon Web Services Support, the identifier is * amazon-redshift-support.

*/ inline AccountWithRestoreAccess& WithAccountAlias(const char* value) { SetAccountAlias(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_accountAlias; bool m_accountAliasHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws