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.network; import com.fasterxml.jackson.annotation.JsonProperty;
DDoS custom policy properties.
/** * DDoS custom policy properties. */
public class ProtocolCustomSettingsFormat {
The protocol for which the DDoS protection policy is being customized. Possible values include: 'Tcp', 'Udp', 'Syn'.
/** * 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.
/** * The customized DDoS protection trigger rate. */
@JsonProperty(value = "triggerRateOverride") private String triggerRateOverride;
The customized DDoS protection source rate.
/** * 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'.
/** * 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'.
Returns:the protocol value
/** * 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'.
Params:
  • protocol – the protocol value to set
Returns:the ProtocolCustomSettingsFormat object itself.
/** * 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.
Returns:the triggerRateOverride value
/** * Get the customized DDoS protection trigger rate. * * @return the triggerRateOverride value */
public String triggerRateOverride() { return this.triggerRateOverride; }
Set the customized DDoS protection trigger rate.
Params:
  • triggerRateOverride – the triggerRateOverride value to set
Returns:the ProtocolCustomSettingsFormat object itself.
/** * 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.
Returns:the sourceRateOverride value
/** * Get the customized DDoS protection source rate. * * @return the sourceRateOverride value */
public String sourceRateOverride() { return this.sourceRateOverride; }
Set the customized DDoS protection source rate.
Params:
  • sourceRateOverride – the sourceRateOverride value to set
Returns:the ProtocolCustomSettingsFormat object itself.
/** * 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'.
Returns:the triggerSensitivityOverride value
/** * 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'.
Params:
  • triggerSensitivityOverride – the triggerSensitivityOverride value to set
Returns:the ProtocolCustomSettingsFormat object itself.
/** * 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; } }