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

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>

#include <utility>

namespace Aws {
namespace RedshiftServerless {
namespace Model {

/**
 */
class CreateSnapshotCopyConfigurationRequest : public RedshiftServerlessRequest {
 public:
  AWS_REDSHIFTSERVERLESS_API CreateSnapshotCopyConfigurationRequest() = 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 "CreateSnapshotCopyConfiguration"; }

  AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;

  AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{
  /**
   * <p>The KMS key to use to encrypt your snapshots in the destination Amazon Web
   * Services Region.</p>
   */
  inline const Aws::String& GetDestinationKmsKeyId() const { return m_destinationKmsKeyId; }
  inline bool DestinationKmsKeyIdHasBeenSet() const { return m_destinationKmsKeyIdHasBeenSet; }
  template <typename DestinationKmsKeyIdT = Aws::String>
  void SetDestinationKmsKeyId(DestinationKmsKeyIdT&& value) {
    m_destinationKmsKeyIdHasBeenSet = true;
    m_destinationKmsKeyId = std::forward<DestinationKmsKeyIdT>(value);
  }
  template <typename DestinationKmsKeyIdT = Aws::String>
  CreateSnapshotCopyConfigurationRequest& WithDestinationKmsKeyId(DestinationKmsKeyIdT&& value) {
    SetDestinationKmsKeyId(std::forward<DestinationKmsKeyIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The destination Amazon Web Services Region that you want to copy snapshots
   * to.</p>
   */
  inline const Aws::String& GetDestinationRegion() const { return m_destinationRegion; }
  inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
  template <typename DestinationRegionT = Aws::String>
  void SetDestinationRegion(DestinationRegionT&& value) {
    m_destinationRegionHasBeenSet = true;
    m_destinationRegion = std::forward<DestinationRegionT>(value);
  }
  template <typename DestinationRegionT = Aws::String>
  CreateSnapshotCopyConfigurationRequest& WithDestinationRegion(DestinationRegionT&& value) {
    SetDestinationRegion(std::forward<DestinationRegionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The name of the namespace to copy snapshots from.</p>
   */
  inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
  inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
  template <typename NamespaceNameT = Aws::String>
  void SetNamespaceName(NamespaceNameT&& value) {
    m_namespaceNameHasBeenSet = true;
    m_namespaceName = std::forward<NamespaceNameT>(value);
  }
  template <typename NamespaceNameT = Aws::String>
  CreateSnapshotCopyConfigurationRequest& WithNamespaceName(NamespaceNameT&& value) {
    SetNamespaceName(std::forward<NamespaceNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The retention period of the snapshots that you copy to the destination Amazon
   * Web Services Region.</p>
   */
  inline int GetSnapshotRetentionPeriod() const { return m_snapshotRetentionPeriod; }
  inline bool SnapshotRetentionPeriodHasBeenSet() const { return m_snapshotRetentionPeriodHasBeenSet; }
  inline void SetSnapshotRetentionPeriod(int value) {
    m_snapshotRetentionPeriodHasBeenSet = true;
    m_snapshotRetentionPeriod = value;
  }
  inline CreateSnapshotCopyConfigurationRequest& WithSnapshotRetentionPeriod(int value) {
    SetSnapshotRetentionPeriod(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_destinationKmsKeyId;

  Aws::String m_destinationRegion;

  Aws::String m_namespaceName;

  int m_snapshotRetentionPeriod{0};
  bool m_destinationKmsKeyIdHasBeenSet = false;
  bool m_destinationRegionHasBeenSet = false;
  bool m_namespaceNameHasBeenSet = false;
  bool m_snapshotRetentionPeriodHasBeenSet = false;
};

}  // namespace Model
}  // namespace RedshiftServerless
}  // namespace Aws
