/**
 * 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/wellarchitected/WellArchitected_EXPORTS.h>
#include <aws/wellarchitected/model/AccountJiraIssueManagementStatus.h>
#include <aws/wellarchitected/model/IntegrationStatusInput.h>
#include <aws/wellarchitected/model/IssueManagementType.h>

#include <utility>

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

/**
 * <p>Account-level: Input for the Jira configuration.</p><p><h3>See Also:</h3>
 * <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/AccountJiraConfigurationInput">AWS
 * API Reference</a></p>
 */
class AccountJiraConfigurationInput {
 public:
  AWS_WELLARCHITECTED_API AccountJiraConfigurationInput() = default;
  AWS_WELLARCHITECTED_API AccountJiraConfigurationInput(Aws::Utils::Json::JsonView jsonValue);
  AWS_WELLARCHITECTED_API AccountJiraConfigurationInput& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>Account-level: Jira issue management status.</p>
   */
  inline AccountJiraIssueManagementStatus GetIssueManagementStatus() const { return m_issueManagementStatus; }
  inline bool IssueManagementStatusHasBeenSet() const { return m_issueManagementStatusHasBeenSet; }
  inline void SetIssueManagementStatus(AccountJiraIssueManagementStatus value) {
    m_issueManagementStatusHasBeenSet = true;
    m_issueManagementStatus = value;
  }
  inline AccountJiraConfigurationInput& WithIssueManagementStatus(AccountJiraIssueManagementStatus value) {
    SetIssueManagementStatus(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Account-level: Jira issue management type.</p>
   */
  inline IssueManagementType GetIssueManagementType() const { return m_issueManagementType; }
  inline bool IssueManagementTypeHasBeenSet() const { return m_issueManagementTypeHasBeenSet; }
  inline void SetIssueManagementType(IssueManagementType value) {
    m_issueManagementTypeHasBeenSet = true;
    m_issueManagementType = value;
  }
  inline AccountJiraConfigurationInput& WithIssueManagementType(IssueManagementType value) {
    SetIssueManagementType(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Account-level: Jira project key to sync workloads to.</p>
   */
  inline const Aws::String& GetJiraProjectKey() const { return m_jiraProjectKey; }
  inline bool JiraProjectKeyHasBeenSet() const { return m_jiraProjectKeyHasBeenSet; }
  template <typename JiraProjectKeyT = Aws::String>
  void SetJiraProjectKey(JiraProjectKeyT&& value) {
    m_jiraProjectKeyHasBeenSet = true;
    m_jiraProjectKey = std::forward<JiraProjectKeyT>(value);
  }
  template <typename JiraProjectKeyT = Aws::String>
  AccountJiraConfigurationInput& WithJiraProjectKey(JiraProjectKeyT&& value) {
    SetJiraProjectKey(std::forward<JiraProjectKeyT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Account-level: Configuration status of the Jira integration.</p>
   */
  inline IntegrationStatusInput GetIntegrationStatus() const { return m_integrationStatus; }
  inline bool IntegrationStatusHasBeenSet() const { return m_integrationStatusHasBeenSet; }
  inline void SetIntegrationStatus(IntegrationStatusInput value) {
    m_integrationStatusHasBeenSet = true;
    m_integrationStatus = value;
  }
  inline AccountJiraConfigurationInput& WithIntegrationStatus(IntegrationStatusInput value) {
    SetIntegrationStatus(value);
    return *this;
  }
  ///@}
 private:
  AccountJiraIssueManagementStatus m_issueManagementStatus{AccountJiraIssueManagementStatus::NOT_SET};

  IssueManagementType m_issueManagementType{IssueManagementType::NOT_SET};

  Aws::String m_jiraProjectKey;

  IntegrationStatusInput m_integrationStatus{IntegrationStatusInput::NOT_SET};
  bool m_issueManagementStatusHasBeenSet = false;
  bool m_issueManagementTypeHasBeenSet = false;
  bool m_jiraProjectKeyHasBeenSet = false;
  bool m_integrationStatusHasBeenSet = false;
};

}  // namespace Model
}  // namespace WellArchitected
}  // namespace Aws
