/**
 * 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/core/utils/memory/stl/AWSVector.h>
#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
#include <aws/resiliencehub/model/RecommendationItem.h>
#include <aws/resiliencehub/model/RecommendationStatus.h>
#include <aws/resiliencehub/model/SopServiceType.h>

#include <utility>

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

/**
 * <p>Defines a standard operating procedure (SOP) recommendation.</p><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/SopRecommendation">AWS
 * API Reference</a></p>
 */
class SopRecommendation {
 public:
  AWS_RESILIENCEHUB_API SopRecommendation() = default;
  AWS_RESILIENCEHUB_API SopRecommendation(Aws::Utils::Json::JsonView jsonValue);
  AWS_RESILIENCEHUB_API SopRecommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>Name of the Application Component.</p>
   */
  inline const Aws::String& GetAppComponentName() const { return m_appComponentName; }
  inline bool AppComponentNameHasBeenSet() const { return m_appComponentNameHasBeenSet; }
  template <typename AppComponentNameT = Aws::String>
  void SetAppComponentName(AppComponentNameT&& value) {
    m_appComponentNameHasBeenSet = true;
    m_appComponentName = std::forward<AppComponentNameT>(value);
  }
  template <typename AppComponentNameT = Aws::String>
  SopRecommendation& WithAppComponentName(AppComponentNameT&& value) {
    SetAppComponentName(std::forward<AppComponentNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Description of the SOP recommendation.</p>
   */
  inline const Aws::String& GetDescription() const { return m_description; }
  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
  template <typename DescriptionT = Aws::String>
  void SetDescription(DescriptionT&& value) {
    m_descriptionHasBeenSet = true;
    m_description = std::forward<DescriptionT>(value);
  }
  template <typename DescriptionT = Aws::String>
  SopRecommendation& WithDescription(DescriptionT&& value) {
    SetDescription(std::forward<DescriptionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The recommendation items.</p>
   */
  inline const Aws::Vector<RecommendationItem>& GetItems() const { return m_items; }
  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
  template <typename ItemsT = Aws::Vector<RecommendationItem>>
  void SetItems(ItemsT&& value) {
    m_itemsHasBeenSet = true;
    m_items = std::forward<ItemsT>(value);
  }
  template <typename ItemsT = Aws::Vector<RecommendationItem>>
  SopRecommendation& WithItems(ItemsT&& value) {
    SetItems(std::forward<ItemsT>(value));
    return *this;
  }
  template <typename ItemsT = RecommendationItem>
  SopRecommendation& AddItems(ItemsT&& value) {
    m_itemsHasBeenSet = true;
    m_items.emplace_back(std::forward<ItemsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Name of the SOP recommendation.</p>
   */
  inline const Aws::String& GetName() const { return m_name; }
  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
  template <typename NameT = Aws::String>
  void SetName(NameT&& value) {
    m_nameHasBeenSet = true;
    m_name = std::forward<NameT>(value);
  }
  template <typename NameT = Aws::String>
  SopRecommendation& WithName(NameT&& value) {
    SetName(std::forward<NameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Prerequisite for the SOP recommendation.</p>
   */
  inline const Aws::String& GetPrerequisite() const { return m_prerequisite; }
  inline bool PrerequisiteHasBeenSet() const { return m_prerequisiteHasBeenSet; }
  template <typename PrerequisiteT = Aws::String>
  void SetPrerequisite(PrerequisiteT&& value) {
    m_prerequisiteHasBeenSet = true;
    m_prerequisite = std::forward<PrerequisiteT>(value);
  }
  template <typename PrerequisiteT = Aws::String>
  SopRecommendation& WithPrerequisite(PrerequisiteT&& value) {
    SetPrerequisite(std::forward<PrerequisiteT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Identifier for the SOP recommendation.</p>
   */
  inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
  inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
  template <typename RecommendationIdT = Aws::String>
  void SetRecommendationId(RecommendationIdT&& value) {
    m_recommendationIdHasBeenSet = true;
    m_recommendationId = std::forward<RecommendationIdT>(value);
  }
  template <typename RecommendationIdT = Aws::String>
  SopRecommendation& WithRecommendationId(RecommendationIdT&& value) {
    SetRecommendationId(std::forward<RecommendationIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Status of the recommended standard operating procedure.</p>
   */
  inline RecommendationStatus GetRecommendationStatus() const { return m_recommendationStatus; }
  inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
  inline void SetRecommendationStatus(RecommendationStatus value) {
    m_recommendationStatusHasBeenSet = true;
    m_recommendationStatus = value;
  }
  inline SopRecommendation& WithRecommendationStatus(RecommendationStatus value) {
    SetRecommendationStatus(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Reference identifier for the SOP recommendation.</p>
   */
  inline const Aws::String& GetReferenceId() const { return m_referenceId; }
  inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
  template <typename ReferenceIdT = Aws::String>
  void SetReferenceId(ReferenceIdT&& value) {
    m_referenceIdHasBeenSet = true;
    m_referenceId = std::forward<ReferenceIdT>(value);
  }
  template <typename ReferenceIdT = Aws::String>
  SopRecommendation& WithReferenceId(ReferenceIdT&& value) {
    SetReferenceId(std::forward<ReferenceIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The service type.</p>
   */
  inline SopServiceType GetServiceType() const { return m_serviceType; }
  inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
  inline void SetServiceType(SopServiceType value) {
    m_serviceTypeHasBeenSet = true;
    m_serviceType = value;
  }
  inline SopRecommendation& WithServiceType(SopServiceType value) {
    SetServiceType(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_appComponentName;

  Aws::String m_description;

  Aws::Vector<RecommendationItem> m_items;

  Aws::String m_name;

  Aws::String m_prerequisite;

  Aws::String m_recommendationId;

  RecommendationStatus m_recommendationStatus{RecommendationStatus::NOT_SET};

  Aws::String m_referenceId;

  SopServiceType m_serviceType{SopServiceType::NOT_SET};
  bool m_appComponentNameHasBeenSet = false;
  bool m_descriptionHasBeenSet = false;
  bool m_itemsHasBeenSet = false;
  bool m_nameHasBeenSet = false;
  bool m_prerequisiteHasBeenSet = false;
  bool m_recommendationIdHasBeenSet = false;
  bool m_recommendationStatusHasBeenSet = false;
  bool m_referenceIdHasBeenSet = false;
  bool m_serviceTypeHasBeenSet = false;
};

}  // namespace Model
}  // namespace ResilienceHub
}  // namespace Aws
