/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AccessAnalyzer { namespace Model { /** *

The values for a manual Amazon RDS DB cluster snapshot * attribute.

See Also:

AWS * API Reference

*/ class RdsDbClusterSnapshotAttributeValue { public: AWS_ACCESSANALYZER_API RdsDbClusterSnapshotAttributeValue(); AWS_ACCESSANALYZER_API RdsDbClusterSnapshotAttributeValue(Aws::Utils::Json::JsonView jsonValue); AWS_ACCESSANALYZER_API RdsDbClusterSnapshotAttributeValue& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Web Services account IDs that have access to the manual Amazon RDS * DB cluster snapshot. If the value all is specified, then the Amazon * RDS DB cluster snapshot is public and can be copied or restored by all Amazon * Web Services accounts.

  • If the configuration is for an existing * Amazon RDS DB cluster snapshot and you do not specify the * accountIds in RdsDbClusterSnapshotAttributeValue, then * the access preview uses the existing shared accountIds for the * snapshot.

  • If the access preview is for a new resource and you * do not specify the specify the accountIds in * RdsDbClusterSnapshotAttributeValue, then the access preview * considers the snapshot without any attributes.

  • To propose * deletion of existing shared accountIds, you can specify an empty * list for accountIds in the * RdsDbClusterSnapshotAttributeValue.

*/ inline const Aws::Vector& GetAccountIds() const{ return m_accountIds; } /** *

The Amazon Web Services account IDs that have access to the manual Amazon RDS * DB cluster snapshot. If the value all is specified, then the Amazon * RDS DB cluster snapshot is public and can be copied or restored by all Amazon * Web Services accounts.

  • If the configuration is for an existing * Amazon RDS DB cluster snapshot and you do not specify the * accountIds in RdsDbClusterSnapshotAttributeValue, then * the access preview uses the existing shared accountIds for the * snapshot.

  • If the access preview is for a new resource and you * do not specify the specify the accountIds in * RdsDbClusterSnapshotAttributeValue, then the access preview * considers the snapshot without any attributes.

  • To propose * deletion of existing shared accountIds, you can specify an empty * list for accountIds in the * RdsDbClusterSnapshotAttributeValue.

*/ inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; } /** *

The Amazon Web Services account IDs that have access to the manual Amazon RDS * DB cluster snapshot. If the value all is specified, then the Amazon * RDS DB cluster snapshot is public and can be copied or restored by all Amazon * Web Services accounts.

  • If the configuration is for an existing * Amazon RDS DB cluster snapshot and you do not specify the * accountIds in RdsDbClusterSnapshotAttributeValue, then * the access preview uses the existing shared accountIds for the * snapshot.

  • If the access preview is for a new resource and you * do not specify the specify the accountIds in * RdsDbClusterSnapshotAttributeValue, then the access preview * considers the snapshot without any attributes.

  • To propose * deletion of existing shared accountIds, you can specify an empty * list for accountIds in the * RdsDbClusterSnapshotAttributeValue.

*/ inline void SetAccountIds(const Aws::Vector& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; } /** *

The Amazon Web Services account IDs that have access to the manual Amazon RDS * DB cluster snapshot. If the value all is specified, then the Amazon * RDS DB cluster snapshot is public and can be copied or restored by all Amazon * Web Services accounts.

  • If the configuration is for an existing * Amazon RDS DB cluster snapshot and you do not specify the * accountIds in RdsDbClusterSnapshotAttributeValue, then * the access preview uses the existing shared accountIds for the * snapshot.

  • If the access preview is for a new resource and you * do not specify the specify the accountIds in * RdsDbClusterSnapshotAttributeValue, then the access preview * considers the snapshot without any attributes.

  • To propose * deletion of existing shared accountIds, you can specify an empty * list for accountIds in the * RdsDbClusterSnapshotAttributeValue.

*/ inline void SetAccountIds(Aws::Vector&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); } /** *

The Amazon Web Services account IDs that have access to the manual Amazon RDS * DB cluster snapshot. If the value all is specified, then the Amazon * RDS DB cluster snapshot is public and can be copied or restored by all Amazon * Web Services accounts.

  • If the configuration is for an existing * Amazon RDS DB cluster snapshot and you do not specify the * accountIds in RdsDbClusterSnapshotAttributeValue, then * the access preview uses the existing shared accountIds for the * snapshot.

  • If the access preview is for a new resource and you * do not specify the specify the accountIds in * RdsDbClusterSnapshotAttributeValue, then the access preview * considers the snapshot without any attributes.

  • To propose * deletion of existing shared accountIds, you can specify an empty * list for accountIds in the * RdsDbClusterSnapshotAttributeValue.

*/ inline RdsDbClusterSnapshotAttributeValue& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} /** *

The Amazon Web Services account IDs that have access to the manual Amazon RDS * DB cluster snapshot. If the value all is specified, then the Amazon * RDS DB cluster snapshot is public and can be copied or restored by all Amazon * Web Services accounts.

  • If the configuration is for an existing * Amazon RDS DB cluster snapshot and you do not specify the * accountIds in RdsDbClusterSnapshotAttributeValue, then * the access preview uses the existing shared accountIds for the * snapshot.

  • If the access preview is for a new resource and you * do not specify the specify the accountIds in * RdsDbClusterSnapshotAttributeValue, then the access preview * considers the snapshot without any attributes.

  • To propose * deletion of existing shared accountIds, you can specify an empty * list for accountIds in the * RdsDbClusterSnapshotAttributeValue.

*/ inline RdsDbClusterSnapshotAttributeValue& WithAccountIds(Aws::Vector&& value) { SetAccountIds(std::move(value)); return *this;} /** *

The Amazon Web Services account IDs that have access to the manual Amazon RDS * DB cluster snapshot. If the value all is specified, then the Amazon * RDS DB cluster snapshot is public and can be copied or restored by all Amazon * Web Services accounts.

  • If the configuration is for an existing * Amazon RDS DB cluster snapshot and you do not specify the * accountIds in RdsDbClusterSnapshotAttributeValue, then * the access preview uses the existing shared accountIds for the * snapshot.

  • If the access preview is for a new resource and you * do not specify the specify the accountIds in * RdsDbClusterSnapshotAttributeValue, then the access preview * considers the snapshot without any attributes.

  • To propose * deletion of existing shared accountIds, you can specify an empty * list for accountIds in the * RdsDbClusterSnapshotAttributeValue.

*/ inline RdsDbClusterSnapshotAttributeValue& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

The Amazon Web Services account IDs that have access to the manual Amazon RDS * DB cluster snapshot. If the value all is specified, then the Amazon * RDS DB cluster snapshot is public and can be copied or restored by all Amazon * Web Services accounts.

  • If the configuration is for an existing * Amazon RDS DB cluster snapshot and you do not specify the * accountIds in RdsDbClusterSnapshotAttributeValue, then * the access preview uses the existing shared accountIds for the * snapshot.

  • If the access preview is for a new resource and you * do not specify the specify the accountIds in * RdsDbClusterSnapshotAttributeValue, then the access preview * considers the snapshot without any attributes.

  • To propose * deletion of existing shared accountIds, you can specify an empty * list for accountIds in the * RdsDbClusterSnapshotAttributeValue.

*/ inline RdsDbClusterSnapshotAttributeValue& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; } /** *

The Amazon Web Services account IDs that have access to the manual Amazon RDS * DB cluster snapshot. If the value all is specified, then the Amazon * RDS DB cluster snapshot is public and can be copied or restored by all Amazon * Web Services accounts.

  • If the configuration is for an existing * Amazon RDS DB cluster snapshot and you do not specify the * accountIds in RdsDbClusterSnapshotAttributeValue, then * the access preview uses the existing shared accountIds for the * snapshot.

  • If the access preview is for a new resource and you * do not specify the specify the accountIds in * RdsDbClusterSnapshotAttributeValue, then the access preview * considers the snapshot without any attributes.

  • To propose * deletion of existing shared accountIds, you can specify an empty * list for accountIds in the * RdsDbClusterSnapshotAttributeValue.

*/ inline RdsDbClusterSnapshotAttributeValue& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } private: Aws::Vector m_accountIds; bool m_accountIdsHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws