/**
 * 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/xray/XRayRequest.h>
#include <aws/xray/XRay_EXPORTS.h>
#include <aws/xray/model/TraceFormatType.h>

#include <utility>

namespace Aws {
namespace XRay {
namespace Model {

/**
 */
class ListRetrievedTracesRequest : public XRayRequest {
 public:
  AWS_XRAY_API ListRetrievedTracesRequest() = 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 "ListRetrievedTraces"; }

  AWS_XRAY_API Aws::String SerializePayload() const override;

  ///@{
  /**
   * <p> Retrieval token. </p>
   */
  inline const Aws::String& GetRetrievalToken() const { return m_retrievalToken; }
  inline bool RetrievalTokenHasBeenSet() const { return m_retrievalTokenHasBeenSet; }
  template <typename RetrievalTokenT = Aws::String>
  void SetRetrievalToken(RetrievalTokenT&& value) {
    m_retrievalTokenHasBeenSet = true;
    m_retrievalToken = std::forward<RetrievalTokenT>(value);
  }
  template <typename RetrievalTokenT = Aws::String>
  ListRetrievedTracesRequest& WithRetrievalToken(RetrievalTokenT&& value) {
    SetRetrievalToken(std::forward<RetrievalTokenT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p> Format of the requested traces. </p>
   */
  inline TraceFormatType GetTraceFormat() const { return m_traceFormat; }
  inline bool TraceFormatHasBeenSet() const { return m_traceFormatHasBeenSet; }
  inline void SetTraceFormat(TraceFormatType value) {
    m_traceFormatHasBeenSet = true;
    m_traceFormat = value;
  }
  inline ListRetrievedTracesRequest& WithTraceFormat(TraceFormatType value) {
    SetTraceFormat(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p> Specify the pagination token returned by a previous request to retrieve the
   * next page of indexes. </p>
   */
  inline const Aws::String& GetNextToken() const { return m_nextToken; }
  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
  template <typename NextTokenT = Aws::String>
  void SetNextToken(NextTokenT&& value) {
    m_nextTokenHasBeenSet = true;
    m_nextToken = std::forward<NextTokenT>(value);
  }
  template <typename NextTokenT = Aws::String>
  ListRetrievedTracesRequest& WithNextToken(NextTokenT&& value) {
    SetNextToken(std::forward<NextTokenT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_retrievalToken;

  TraceFormatType m_traceFormat{TraceFormatType::NOT_SET};

  Aws::String m_nextToken;
  bool m_retrievalTokenHasBeenSet = false;
  bool m_traceFormatHasBeenSet = false;
  bool m_nextTokenHasBeenSet = false;
};

}  // namespace Model
}  // namespace XRay
}  // namespace Aws
