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

#pragma once
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/securitylake/SecurityLakeRequest.h>
#include <aws/securitylake/SecurityLake_EXPORTS.h>
#include <aws/securitylake/model/DataLakeAutoEnableNewAccountConfiguration.h>

#include <utility>

namespace Aws {
namespace SecurityLake {
namespace Model {

/**
 */
class CreateDataLakeOrganizationConfigurationRequest : public SecurityLakeRequest {
 public:
  AWS_SECURITYLAKE_API CreateDataLakeOrganizationConfigurationRequest() = default;

  // Service request name is the Operation name which will send this request out,
  // each operation should has unique request name, so that we can get operation's name from this request.
  // Note: this is not true for response, multiple operations may have the same response name,
  // so we can not get operation's name from response.
  inline virtual const char* GetServiceRequestName() const override { return "CreateDataLakeOrganizationConfiguration"; }

  AWS_SECURITYLAKE_API Aws::String SerializePayload() const override;

  ///@{
  /**
   * <p>Enable Security Lake with the specified configuration settings, to begin
   * collecting security data for new accounts in your organization.</p>
   */
  inline const Aws::Vector<DataLakeAutoEnableNewAccountConfiguration>& GetAutoEnableNewAccount() const { return m_autoEnableNewAccount; }
  inline bool AutoEnableNewAccountHasBeenSet() const { return m_autoEnableNewAccountHasBeenSet; }
  template <typename AutoEnableNewAccountT = Aws::Vector<DataLakeAutoEnableNewAccountConfiguration>>
  void SetAutoEnableNewAccount(AutoEnableNewAccountT&& value) {
    m_autoEnableNewAccountHasBeenSet = true;
    m_autoEnableNewAccount = std::forward<AutoEnableNewAccountT>(value);
  }
  template <typename AutoEnableNewAccountT = Aws::Vector<DataLakeAutoEnableNewAccountConfiguration>>
  CreateDataLakeOrganizationConfigurationRequest& WithAutoEnableNewAccount(AutoEnableNewAccountT&& value) {
    SetAutoEnableNewAccount(std::forward<AutoEnableNewAccountT>(value));
    return *this;
  }
  template <typename AutoEnableNewAccountT = DataLakeAutoEnableNewAccountConfiguration>
  CreateDataLakeOrganizationConfigurationRequest& AddAutoEnableNewAccount(AutoEnableNewAccountT&& value) {
    m_autoEnableNewAccountHasBeenSet = true;
    m_autoEnableNewAccount.emplace_back(std::forward<AutoEnableNewAccountT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::Vector<DataLakeAutoEnableNewAccountConfiguration> m_autoEnableNewAccount;
  bool m_autoEnableNewAccountHasBeenSet = false;
};

}  // namespace Model
}  // namespace SecurityLake
}  // namespace Aws
