<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\Compute;

class WafExpressionSetExpression extends \Google\Model
{
  /**
   * Expression ID should uniquely identify the origin of the expression. E.g.
   * owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1
   * rule id 973337. The ID could be used to determine the individual attack
   * definition that has been detected. It could also be used to exclude it from
   * the policy in case of false positive. required
   *
   * @var string
   */
  public $id;
  /**
   * The sensitivity value associated with the WAF rule ID. This corresponds to
   * the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-
   * in only rules.
   *
   * @var int
   */
  public $sensitivity;

  /**
   * Expression ID should uniquely identify the origin of the expression. E.g.
   * owasp-crs-v020901-id973337 identifies Owasp core rule set version 2.9.1
   * rule id 973337. The ID could be used to determine the individual attack
   * definition that has been detected. It could also be used to exclude it from
   * the policy in case of false positive. required
   *
   * @param string $id
   */
  public function setId($id)
  {
    $this->id = $id;
  }
  /**
   * @return string
   */
  public function getId()
  {
    return $this->id;
  }
  /**
   * The sensitivity value associated with the WAF rule ID. This corresponds to
   * the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-
   * in only rules.
   *
   * @param int $sensitivity
   */
  public function setSensitivity($sensitivity)
  {
    $this->sensitivity = $sensitivity;
  }
  /**
   * @return int
   */
  public function getSensitivity()
  {
    return $this->sensitivity;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WafExpressionSetExpression::class, 'Google_Service_Compute_WafExpressionSetExpression');
