﻿/**
 * 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/sqs/SQS_EXPORTS.h>

#include <utility>

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

/**
 * <p>Encloses a receipt handle and an entry ID for each message in <code>
 * <a>ChangeMessageVisibilityBatch</a>.</code> </p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityBatchRequestEntry">AWS
 * API Reference</a></p>
 */
class ChangeMessageVisibilityBatchRequestEntry {
 public:
  AWS_SQS_API ChangeMessageVisibilityBatchRequestEntry() = default;
  AWS_SQS_API ChangeMessageVisibilityBatchRequestEntry(Aws::Utils::Json::JsonView jsonValue);
  AWS_SQS_API ChangeMessageVisibilityBatchRequestEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SQS_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>An identifier for this particular receipt handle used to communicate the
   * result.</p>  <p>The <code>Id</code>s of a batch request need to be unique
   * within a request.</p> <p>This identifier can have up to 80 characters. The
   * following characters are accepted: alphanumeric characters, hyphens(-), and
   * underscores (_).</p>
   */
  inline const Aws::String& GetId() const { return m_id; }
  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
  template <typename IdT = Aws::String>
  void SetId(IdT&& value) {
    m_idHasBeenSet = true;
    m_id = std::forward<IdT>(value);
  }
  template <typename IdT = Aws::String>
  ChangeMessageVisibilityBatchRequestEntry& WithId(IdT&& value) {
    SetId(std::forward<IdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A receipt handle.</p>
   */
  inline const Aws::String& GetReceiptHandle() const { return m_receiptHandle; }
  inline bool ReceiptHandleHasBeenSet() const { return m_receiptHandleHasBeenSet; }
  template <typename ReceiptHandleT = Aws::String>
  void SetReceiptHandle(ReceiptHandleT&& value) {
    m_receiptHandleHasBeenSet = true;
    m_receiptHandle = std::forward<ReceiptHandleT>(value);
  }
  template <typename ReceiptHandleT = Aws::String>
  ChangeMessageVisibilityBatchRequestEntry& WithReceiptHandle(ReceiptHandleT&& value) {
    SetReceiptHandle(std::forward<ReceiptHandleT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The new value (in seconds) for the message's visibility timeout.</p>
   */
  inline int GetVisibilityTimeout() const { return m_visibilityTimeout; }
  inline bool VisibilityTimeoutHasBeenSet() const { return m_visibilityTimeoutHasBeenSet; }
  inline void SetVisibilityTimeout(int value) {
    m_visibilityTimeoutHasBeenSet = true;
    m_visibilityTimeout = value;
  }
  inline ChangeMessageVisibilityBatchRequestEntry& WithVisibilityTimeout(int value) {
    SetVisibilityTimeout(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_id;

  Aws::String m_receiptHandle;

  int m_visibilityTimeout{0};
  bool m_idHasBeenSet = false;
  bool m_receiptHandleHasBeenSet = false;
  bool m_visibilityTimeoutHasBeenSet = false;
};

}  // namespace Model
}  // namespace SQS
}  // namespace Aws
