/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace AccessAnalyzer
{
namespace Model
{

  /**
   * <p>The name and values of a manual Amazon RDS DB snapshot attribute. Manual DB
   * snapshot attributes are used to authorize other Amazon Web Services accounts to
   * restore a manual DB snapshot.</p><p><h3>See Also:</h3>   <a
   * href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/RdsDbSnapshotAttributeValue">AWS
   * API Reference</a></p>
   */
  class RdsDbSnapshotAttributeValue
  {
  public:
    AWS_ACCESSANALYZER_API RdsDbSnapshotAttributeValue() = default;
    AWS_ACCESSANALYZER_API RdsDbSnapshotAttributeValue(Aws::Utils::Json::JsonView jsonValue);
    AWS_ACCESSANALYZER_API RdsDbSnapshotAttributeValue& operator=(Aws::Utils::Json::JsonView jsonValue);
    AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;


    ///@{
    /**
     * <p>The Amazon Web Services account IDs that have access to the manual Amazon RDS
     * DB snapshot. If the value <code>all</code> is specified, then the Amazon RDS DB
     * snapshot is public and can be copied or restored by all Amazon Web Services
     * accounts.</p> <ul> <li> <p>If the configuration is for an existing Amazon RDS DB
     * snapshot and you do not specify the <code>accountIds</code> in
     * <code>RdsDbSnapshotAttributeValue</code>, then the access preview uses the
     * existing shared <code>accountIds</code> for the snapshot.</p> </li> <li> <p>If
     * the access preview is for a new resource and you do not specify the specify the
     * <code>accountIds</code> in <code>RdsDbSnapshotAttributeValue</code>, then the
     * access preview considers the snapshot without any attributes.</p> </li> <li>
     * <p>To propose deletion of an existing shared <code>accountIds</code>, you can
     * specify an empty list for <code>accountIds</code> in the
     * <code>RdsDbSnapshotAttributeValue</code>.</p> </li> </ul>
     */
    inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
    inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
    template<typename AccountIdsT = Aws::Vector<Aws::String>>
    void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
    template<typename AccountIdsT = Aws::Vector<Aws::String>>
    RdsDbSnapshotAttributeValue& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
    template<typename AccountIdsT = Aws::String>
    RdsDbSnapshotAttributeValue& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
    ///@}
  private:

    Aws::Vector<Aws::String> m_accountIds;
    bool m_accountIdsHasBeenSet = false;
  };

} // namespace Model
} // namespace AccessAnalyzer
} // namespace Aws
