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

#pragma once
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/redshift/Redshift_EXPORTS.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Xml {
class XmlNode;
}  // namespace Xml
}  // namespace Utils
namespace Redshift {
namespace Model {

/**
 * <p/><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSnapshotMessage">AWS
 * API Reference</a></p>
 */
class DeleteClusterSnapshotMessage {
 public:
  AWS_REDSHIFT_API DeleteClusterSnapshotMessage() = default;
  AWS_REDSHIFT_API DeleteClusterSnapshotMessage(const Aws::Utils::Xml::XmlNode& xmlNode);
  AWS_REDSHIFT_API DeleteClusterSnapshotMessage& 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;

  ///@{
  /**
   * <p>The unique identifier of the manual snapshot to be deleted.</p>
   * <p>Constraints: Must be the name of an existing snapshot that is in the
   * <code>available</code>, <code>failed</code>, or <code>cancelled</code>
   * state.</p>
   */
  inline const Aws::String& GetSnapshotIdentifier() const { return m_snapshotIdentifier; }
  inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
  template <typename SnapshotIdentifierT = Aws::String>
  void SetSnapshotIdentifier(SnapshotIdentifierT&& value) {
    m_snapshotIdentifierHasBeenSet = true;
    m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value);
  }
  template <typename SnapshotIdentifierT = Aws::String>
  DeleteClusterSnapshotMessage& WithSnapshotIdentifier(SnapshotIdentifierT&& value) {
    SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The unique identifier of the cluster the snapshot was created from. This
   * parameter is required if your IAM user has a policy containing a snapshot
   * resource element that specifies anything other than * for the cluster name.</p>
   * <p>Constraints: Must be the name of valid cluster.</p>
   */
  inline const Aws::String& GetSnapshotClusterIdentifier() const { return m_snapshotClusterIdentifier; }
  inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; }
  template <typename SnapshotClusterIdentifierT = Aws::String>
  void SetSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) {
    m_snapshotClusterIdentifierHasBeenSet = true;
    m_snapshotClusterIdentifier = std::forward<SnapshotClusterIdentifierT>(value);
  }
  template <typename SnapshotClusterIdentifierT = Aws::String>
  DeleteClusterSnapshotMessage& WithSnapshotClusterIdentifier(SnapshotClusterIdentifierT&& value) {
    SetSnapshotClusterIdentifier(std::forward<SnapshotClusterIdentifierT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_snapshotIdentifier;

  Aws::String m_snapshotClusterIdentifier;
  bool m_snapshotIdentifierHasBeenSet = false;
  bool m_snapshotClusterIdentifierHasBeenSet = false;
};

}  // namespace Model
}  // namespace Redshift
}  // namespace Aws
