ConnectionFromIpNotAllowed Class

public final class ConnectionFromIpNotAllowed
extends AllowlistCustomAlertRule

Inbound connection from an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation.

Constructor Summary

Constructor Description
ConnectionFromIpNotAllowed()

Creates an instance of ConnectionFromIpNotAllowed class.

Method Summary

Modifier and Type Method and Description
void validate()

Validates the instance.

ConnectionFromIpNotAllowed withAllowlistValues(List<String> allowlistValues)

Set the allowlistValues property: The values to allow.

ConnectionFromIpNotAllowed withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Methods inherited from AllowlistCustomAlertRule

Methods inherited from CustomAlertRule

Methods inherited from ListCustomAlertRule

Methods inherited from java.lang.Object

Constructor Details

ConnectionFromIpNotAllowed

public ConnectionFromIpNotAllowed()

Creates an instance of ConnectionFromIpNotAllowed class.

Method Details

validate

public void validate()

Validates the instance.

Overrides:

ConnectionFromIpNotAllowed.validate()

withAllowlistValues

public ConnectionFromIpNotAllowed withAllowlistValues(List allowlistValues)

Set the allowlistValues property: The values to allow. The format of the values depends on the rule type.

Overrides:

ConnectionFromIpNotAllowed.withAllowlistValues(List<String> allowlistValues)

Parameters:

allowlistValues

withIsEnabled

public ConnectionFromIpNotAllowed withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Overrides:

ConnectionFromIpNotAllowed.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

Applies to