/**
 * 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/waf-regional/WAFRegional_EXPORTS.h>

#include <utility>

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

/**
 *  <p>This is <b>AWS WAF Classic</b> documentation. For more information,
 * see <a
 * href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
 * WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
 * WAF</b>, use the AWS WAFV2 API and see the <a
 * href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
 * WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
 * endpoints for regional and global use. </p>  <p>A summary of the rule
 * groups you are subscribed to.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/SubscribedRuleGroupSummary">AWS
 * API Reference</a></p>
 */
class SubscribedRuleGroupSummary {
 public:
  AWS_WAFREGIONAL_API SubscribedRuleGroupSummary() = default;
  AWS_WAFREGIONAL_API SubscribedRuleGroupSummary(Aws::Utils::Json::JsonView jsonValue);
  AWS_WAFREGIONAL_API SubscribedRuleGroupSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>A unique identifier for a <code>RuleGroup</code>.</p>
   */
  inline const Aws::String& GetRuleGroupId() const { return m_ruleGroupId; }
  inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
  template <typename RuleGroupIdT = Aws::String>
  void SetRuleGroupId(RuleGroupIdT&& value) {
    m_ruleGroupIdHasBeenSet = true;
    m_ruleGroupId = std::forward<RuleGroupIdT>(value);
  }
  template <typename RuleGroupIdT = Aws::String>
  SubscribedRuleGroupSummary& WithRuleGroupId(RuleGroupIdT&& value) {
    SetRuleGroupId(std::forward<RuleGroupIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A friendly name or description of the <code>RuleGroup</code>. You can't
   * change the name of a <code>RuleGroup</code> after you create it.</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>
  SubscribedRuleGroupSummary& WithName(NameT&& value) {
    SetName(std::forward<NameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A friendly name or description for the metrics for this
   * <code>RuleGroup</code>. The name can contain only alphanumeric characters (A-Z,
   * a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
   * whitespace or metric names reserved for AWS WAF, including "All" and
   * "Default_Action." You can't change the name of the metric after you create the
   * <code>RuleGroup</code>.</p>
   */
  inline const Aws::String& GetMetricName() const { return m_metricName; }
  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
  template <typename MetricNameT = Aws::String>
  void SetMetricName(MetricNameT&& value) {
    m_metricNameHasBeenSet = true;
    m_metricName = std::forward<MetricNameT>(value);
  }
  template <typename MetricNameT = Aws::String>
  SubscribedRuleGroupSummary& WithMetricName(MetricNameT&& value) {
    SetMetricName(std::forward<MetricNameT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_ruleGroupId;

  Aws::String m_name;

  Aws::String m_metricName;
  bool m_ruleGroupIdHasBeenSet = false;
  bool m_nameHasBeenSet = false;
  bool m_metricNameHasBeenSet = false;
};

}  // namespace Model
}  // namespace WAFRegional
}  // namespace Aws
