All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.management.network.ProtocolCustomSettingsFormat Maven / Gradle / Ivy

There is a newer version: 1.41.4
Show newest version
/**
 * 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.network;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * DDoS custom policy properties.
 */
public class ProtocolCustomSettingsFormat {
    /**
     * The protocol for which the DDoS protection policy is being customized.
     * Possible values include: 'Tcp', 'Udp', 'Syn'.
     */
    @JsonProperty(value = "protocol")
    private DdosCustomPolicyProtocol protocol;

    /**
     * The customized DDoS protection trigger rate.
     */
    @JsonProperty(value = "triggerRateOverride")
    private String triggerRateOverride;

    /**
     * The customized DDoS protection source rate.
     */
    @JsonProperty(value = "sourceRateOverride")
    private String sourceRateOverride;

    /**
     * The customized DDoS protection trigger rate sensitivity degrees. High:
     * Trigger rate set with most sensitivity w.r.t. normal traffic. Default:
     * Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low:
     * Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed:
     * Trigger rate set with least sensitivity w.r.t. normal traffic. Possible
     * values include: 'Relaxed', 'Low', 'Default', 'High'.
     */
    @JsonProperty(value = "triggerSensitivityOverride")
    private DdosCustomPolicyTriggerSensitivityOverride triggerSensitivityOverride;

    /**
     * Get the protocol for which the DDoS protection policy is being customized. Possible values include: 'Tcp', 'Udp', 'Syn'.
     *
     * @return the protocol value
     */
    public DdosCustomPolicyProtocol protocol() {
        return this.protocol;
    }

    /**
     * Set the protocol for which the DDoS protection policy is being customized. Possible values include: 'Tcp', 'Udp', 'Syn'.
     *
     * @param protocol the protocol value to set
     * @return the ProtocolCustomSettingsFormat object itself.
     */
    public ProtocolCustomSettingsFormat withProtocol(DdosCustomPolicyProtocol protocol) {
        this.protocol = protocol;
        return this;
    }

    /**
     * Get the customized DDoS protection trigger rate.
     *
     * @return the triggerRateOverride value
     */
    public String triggerRateOverride() {
        return this.triggerRateOverride;
    }

    /**
     * Set the customized DDoS protection trigger rate.
     *
     * @param triggerRateOverride the triggerRateOverride value to set
     * @return the ProtocolCustomSettingsFormat object itself.
     */
    public ProtocolCustomSettingsFormat withTriggerRateOverride(String triggerRateOverride) {
        this.triggerRateOverride = triggerRateOverride;
        return this;
    }

    /**
     * Get the customized DDoS protection source rate.
     *
     * @return the sourceRateOverride value
     */
    public String sourceRateOverride() {
        return this.sourceRateOverride;
    }

    /**
     * Set the customized DDoS protection source rate.
     *
     * @param sourceRateOverride the sourceRateOverride value to set
     * @return the ProtocolCustomSettingsFormat object itself.
     */
    public ProtocolCustomSettingsFormat withSourceRateOverride(String sourceRateOverride) {
        this.sourceRateOverride = sourceRateOverride;
        return this;
    }

    /**
     * Get the customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic. Possible values include: 'Relaxed', 'Low', 'Default', 'High'.
     *
     * @return the triggerSensitivityOverride value
     */
    public DdosCustomPolicyTriggerSensitivityOverride triggerSensitivityOverride() {
        return this.triggerSensitivityOverride;
    }

    /**
     * Set the customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic. Possible values include: 'Relaxed', 'Low', 'Default', 'High'.
     *
     * @param triggerSensitivityOverride the triggerSensitivityOverride value to set
     * @return the ProtocolCustomSettingsFormat object itself.
     */
    public ProtocolCustomSettingsFormat withTriggerSensitivityOverride(DdosCustomPolicyTriggerSensitivityOverride triggerSensitivityOverride) {
        this.triggerSensitivityOverride = triggerSensitivityOverride;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy