/**
 * 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/datazone/DataZone_EXPORTS.h>
#include <aws/datazone/model/RuleScopeSelectionMode.h>

#include <utility>

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

/**
 * <p>Specifies projects in which the rule is created.</p><p><h3>See Also:</h3>
 * <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/ProjectsForRule">AWS
 * API Reference</a></p>
 */
class ProjectsForRule {
 public:
  AWS_DATAZONE_API ProjectsForRule() = default;
  AWS_DATAZONE_API ProjectsForRule(Aws::Utils::Json::JsonView jsonValue);
  AWS_DATAZONE_API ProjectsForRule& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The selection mode of the rule.</p>
   */
  inline RuleScopeSelectionMode GetSelectionMode() const { return m_selectionMode; }
  inline bool SelectionModeHasBeenSet() const { return m_selectionModeHasBeenSet; }
  inline void SetSelectionMode(RuleScopeSelectionMode value) {
    m_selectionModeHasBeenSet = true;
    m_selectionMode = value;
  }
  inline ProjectsForRule& WithSelectionMode(RuleScopeSelectionMode value) {
    SetSelectionMode(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The specific projects in which the rule is created.</p>
   */
  inline const Aws::Vector<Aws::String>& GetSpecificProjects() const { return m_specificProjects; }
  inline bool SpecificProjectsHasBeenSet() const { return m_specificProjectsHasBeenSet; }
  template <typename SpecificProjectsT = Aws::Vector<Aws::String>>
  void SetSpecificProjects(SpecificProjectsT&& value) {
    m_specificProjectsHasBeenSet = true;
    m_specificProjects = std::forward<SpecificProjectsT>(value);
  }
  template <typename SpecificProjectsT = Aws::Vector<Aws::String>>
  ProjectsForRule& WithSpecificProjects(SpecificProjectsT&& value) {
    SetSpecificProjects(std::forward<SpecificProjectsT>(value));
    return *this;
  }
  template <typename SpecificProjectsT = Aws::String>
  ProjectsForRule& AddSpecificProjects(SpecificProjectsT&& value) {
    m_specificProjectsHasBeenSet = true;
    m_specificProjects.emplace_back(std::forward<SpecificProjectsT>(value));
    return *this;
  }
  ///@}
 private:
  RuleScopeSelectionMode m_selectionMode{RuleScopeSelectionMode::NOT_SET};
  bool m_selectionModeHasBeenSet = false;

  Aws::Vector<Aws::String> m_specificProjects;
  bool m_specificProjectsHasBeenSet = false;
};

}  // namespace Model
}  // namespace DataZone
}  // namespace Aws
