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

#include <utility>

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

/**
 * <p>A summary of a specific version of the model card.</p><p><h3>See Also:</h3>
 * <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ModelCardVersionSummary">AWS
 * API Reference</a></p>
 */
class ModelCardVersionSummary {
 public:
  AWS_SAGEMAKER_API ModelCardVersionSummary() = default;
  AWS_SAGEMAKER_API ModelCardVersionSummary(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API ModelCardVersionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The name of the model card.</p>
   */
  inline const Aws::String& GetModelCardName() const { return m_modelCardName; }
  inline bool ModelCardNameHasBeenSet() const { return m_modelCardNameHasBeenSet; }
  template <typename ModelCardNameT = Aws::String>
  void SetModelCardName(ModelCardNameT&& value) {
    m_modelCardNameHasBeenSet = true;
    m_modelCardName = std::forward<ModelCardNameT>(value);
  }
  template <typename ModelCardNameT = Aws::String>
  ModelCardVersionSummary& WithModelCardName(ModelCardNameT&& value) {
    SetModelCardName(std::forward<ModelCardNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) of the model card.</p>
   */
  inline const Aws::String& GetModelCardArn() const { return m_modelCardArn; }
  inline bool ModelCardArnHasBeenSet() const { return m_modelCardArnHasBeenSet; }
  template <typename ModelCardArnT = Aws::String>
  void SetModelCardArn(ModelCardArnT&& value) {
    m_modelCardArnHasBeenSet = true;
    m_modelCardArn = std::forward<ModelCardArnT>(value);
  }
  template <typename ModelCardArnT = Aws::String>
  ModelCardVersionSummary& WithModelCardArn(ModelCardArnT&& value) {
    SetModelCardArn(std::forward<ModelCardArnT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The approval status of the model card version within your organization.
   * Different organizations might have different criteria for model card review and
   * approval.</p> <ul> <li> <p> <code>Draft</code>: The model card is a work in
   * progress.</p> </li> <li> <p> <code>PendingReview</code>: The model card is
   * pending review.</p> </li> <li> <p> <code>Approved</code>: The model card is
   * approved.</p> </li> <li> <p> <code>Archived</code>: The model card is archived.
   * No more updates should be made to the model card, but it can still be
   * exported.</p> </li> </ul>
   */
  inline ModelCardStatus GetModelCardStatus() const { return m_modelCardStatus; }
  inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; }
  inline void SetModelCardStatus(ModelCardStatus value) {
    m_modelCardStatusHasBeenSet = true;
    m_modelCardStatus = value;
  }
  inline ModelCardVersionSummary& WithModelCardStatus(ModelCardStatus value) {
    SetModelCardStatus(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A version of the model card.</p>
   */
  inline int GetModelCardVersion() const { return m_modelCardVersion; }
  inline bool ModelCardVersionHasBeenSet() const { return m_modelCardVersionHasBeenSet; }
  inline void SetModelCardVersion(int value) {
    m_modelCardVersionHasBeenSet = true;
    m_modelCardVersion = value;
  }
  inline ModelCardVersionSummary& WithModelCardVersion(int value) {
    SetModelCardVersion(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The date and time that the model card version was created.</p>
   */
  inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
  template <typename CreationTimeT = Aws::Utils::DateTime>
  void SetCreationTime(CreationTimeT&& value) {
    m_creationTimeHasBeenSet = true;
    m_creationTime = std::forward<CreationTimeT>(value);
  }
  template <typename CreationTimeT = Aws::Utils::DateTime>
  ModelCardVersionSummary& WithCreationTime(CreationTimeT&& value) {
    SetCreationTime(std::forward<CreationTimeT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The time date and time that the model card version was last modified.</p>
   */
  inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
  inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
  template <typename LastModifiedTimeT = Aws::Utils::DateTime>
  void SetLastModifiedTime(LastModifiedTimeT&& value) {
    m_lastModifiedTimeHasBeenSet = true;
    m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
  }
  template <typename LastModifiedTimeT = Aws::Utils::DateTime>
  ModelCardVersionSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
    SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_modelCardName;

  Aws::String m_modelCardArn;

  ModelCardStatus m_modelCardStatus{ModelCardStatus::NOT_SET};

  int m_modelCardVersion{0};

  Aws::Utils::DateTime m_creationTime{};

  Aws::Utils::DateTime m_lastModifiedTime{};
  bool m_modelCardNameHasBeenSet = false;
  bool m_modelCardArnHasBeenSet = false;
  bool m_modelCardStatusHasBeenSet = false;
  bool m_modelCardVersionHasBeenSet = false;
  bool m_creationTimeHasBeenSet = false;
  bool m_lastModifiedTimeHasBeenSet = false;
};

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