/**
 * 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/sagemaker/SageMaker_EXPORTS.h>
#include <aws/sagemaker/model/OfflineStoreStatusValue.h>

#include <utility>

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

/**
 * <p>The status of <code>OfflineStore</code>.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/OfflineStoreStatus">AWS
 * API Reference</a></p>
 */
class OfflineStoreStatus {
 public:
  AWS_SAGEMAKER_API OfflineStoreStatus() = default;
  AWS_SAGEMAKER_API OfflineStoreStatus(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API OfflineStoreStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>An <code>OfflineStore</code> status.</p>
   */
  inline OfflineStoreStatusValue GetStatus() const { return m_status; }
  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
  inline void SetStatus(OfflineStoreStatusValue value) {
    m_statusHasBeenSet = true;
    m_status = value;
  }
  inline OfflineStoreStatus& WithStatus(OfflineStoreStatusValue value) {
    SetStatus(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The justification for why the OfflineStoreStatus is Blocked (if
   * applicable).</p>
   */
  inline const Aws::String& GetBlockedReason() const { return m_blockedReason; }
  inline bool BlockedReasonHasBeenSet() const { return m_blockedReasonHasBeenSet; }
  template <typename BlockedReasonT = Aws::String>
  void SetBlockedReason(BlockedReasonT&& value) {
    m_blockedReasonHasBeenSet = true;
    m_blockedReason = std::forward<BlockedReasonT>(value);
  }
  template <typename BlockedReasonT = Aws::String>
  OfflineStoreStatus& WithBlockedReason(BlockedReasonT&& value) {
    SetBlockedReason(std::forward<BlockedReasonT>(value));
    return *this;
  }
  ///@}
 private:
  OfflineStoreStatusValue m_status{OfflineStoreStatusValue::NOT_SET};

  Aws::String m_blockedReason;
  bool m_statusHasBeenSet = false;
  bool m_blockedReasonHasBeenSet = false;
};

}  // namespace Model
}  // namespace SageMaker
}  // namespace Aws
