Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.cdn; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Defines a managed rule group override setting.
/** * Defines a managed rule group override setting. */
public class ManagedRuleGroupOverride {
Describes the managed rule group within the rule set to override.
/** * Describes the managed rule group within the rule set to override. */
@JsonProperty(value = "ruleGroupName", required = true) private String ruleGroupName;
List of rules that will be disabled. If none specified, all rules in the group will be disabled.
/** * List of rules that will be disabled. If none specified, all rules in the * group will be disabled. */
@JsonProperty(value = "rules") private List<ManagedRuleOverride> rules;
Get describes the managed rule group within the rule set to override.
Returns:the ruleGroupName value
/** * Get describes the managed rule group within the rule set to override. * * @return the ruleGroupName value */
public String ruleGroupName() { return this.ruleGroupName; }
Set describes the managed rule group within the rule set to override.
Params:
  • ruleGroupName – the ruleGroupName value to set
Returns:the ManagedRuleGroupOverride object itself.
/** * Set describes the managed rule group within the rule set to override. * * @param ruleGroupName the ruleGroupName value to set * @return the ManagedRuleGroupOverride object itself. */
public ManagedRuleGroupOverride withRuleGroupName(String ruleGroupName) { this.ruleGroupName = ruleGroupName; return this; }
Get list of rules that will be disabled. If none specified, all rules in the group will be disabled.
Returns:the rules value
/** * Get list of rules that will be disabled. If none specified, all rules in the group will be disabled. * * @return the rules value */
public List<ManagedRuleOverride> rules() { return this.rules; }
Set list of rules that will be disabled. If none specified, all rules in the group will be disabled.
Params:
  • rules – the rules value to set
Returns:the ManagedRuleGroupOverride object itself.
/** * Set list of rules that will be disabled. If none specified, all rules in the group will be disabled. * * @param rules the rules value to set * @return the ManagedRuleGroupOverride object itself. */
public ManagedRuleGroupOverride withRules(List<ManagedRuleOverride> rules) { this.rules = rules; return this; } }