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

#pragma once
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/kinesisvideo/KinesisVideo_EXPORTS.h>
#include <aws/kinesisvideo/model/RecorderStatus.h>

#include <utility>

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

/**
 * <p>The latest status of a stream's edge recording job.</p><p><h3>See Also:</h3>
 * <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/LastRecorderStatus">AWS
 * API Reference</a></p>
 */
class LastRecorderStatus {
 public:
  AWS_KINESISVIDEO_API LastRecorderStatus() = default;
  AWS_KINESISVIDEO_API LastRecorderStatus(Aws::Utils::Json::JsonView jsonValue);
  AWS_KINESISVIDEO_API LastRecorderStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>A description of a recorder job’s latest status.</p>
   */
  inline const Aws::String& GetJobStatusDetails() const { return m_jobStatusDetails; }
  inline bool JobStatusDetailsHasBeenSet() const { return m_jobStatusDetailsHasBeenSet; }
  template <typename JobStatusDetailsT = Aws::String>
  void SetJobStatusDetails(JobStatusDetailsT&& value) {
    m_jobStatusDetailsHasBeenSet = true;
    m_jobStatusDetails = std::forward<JobStatusDetailsT>(value);
  }
  template <typename JobStatusDetailsT = Aws::String>
  LastRecorderStatus& WithJobStatusDetails(JobStatusDetailsT&& value) {
    SetJobStatusDetails(std::forward<JobStatusDetailsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The timestamp at which the recorder job was last executed and media stored to
   * local disk.</p>
   */
  inline const Aws::Utils::DateTime& GetLastCollectedTime() const { return m_lastCollectedTime; }
  inline bool LastCollectedTimeHasBeenSet() const { return m_lastCollectedTimeHasBeenSet; }
  template <typename LastCollectedTimeT = Aws::Utils::DateTime>
  void SetLastCollectedTime(LastCollectedTimeT&& value) {
    m_lastCollectedTimeHasBeenSet = true;
    m_lastCollectedTime = std::forward<LastCollectedTimeT>(value);
  }
  template <typename LastCollectedTimeT = Aws::Utils::DateTime>
  LastRecorderStatus& WithLastCollectedTime(LastCollectedTimeT&& value) {
    SetLastCollectedTime(std::forward<LastCollectedTimeT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The timestamp at which the recorder status was last updated.</p>
   */
  inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
  inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
  template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
  void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
    m_lastUpdatedTimeHasBeenSet = true;
    m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
  }
  template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
  LastRecorderStatus& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
    SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The status of the latest recorder job.</p>
   */
  inline RecorderStatus GetRecorderStatus() const { return m_recorderStatus; }
  inline bool RecorderStatusHasBeenSet() const { return m_recorderStatusHasBeenSet; }
  inline void SetRecorderStatus(RecorderStatus value) {
    m_recorderStatusHasBeenSet = true;
    m_recorderStatus = value;
  }
  inline LastRecorderStatus& WithRecorderStatus(RecorderStatus value) {
    SetRecorderStatus(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_jobStatusDetails;
  bool m_jobStatusDetailsHasBeenSet = false;

  Aws::Utils::DateTime m_lastCollectedTime{};
  bool m_lastCollectedTimeHasBeenSet = false;

  Aws::Utils::DateTime m_lastUpdatedTime{};
  bool m_lastUpdatedTimeHasBeenSet = false;

  RecorderStatus m_recorderStatus{RecorderStatus::NOT_SET};
  bool m_recorderStatusHasBeenSet = false;
};

}  // namespace Model
}  // namespace KinesisVideo
}  // namespace Aws
