IpRule Class

  • java.lang.Object
    • com.azure.resourcemanager.signalr.models.IpRule

public final class IpRule

An IP rule.

Constructor Summary

Constructor Description
IpRule()

Creates an instance of IpRule class.

Method Summary

Modifier and Type Method and Description
AclAction action()

Get the action property: Azure Networking ACL Action.

void validate()

Validates the instance.

String value()

Get the value property: An IP or CIDR or ServiceTag.

IpRule withAction(AclAction action)

Set the action property: Azure Networking ACL Action.

IpRule withValue(String value)

Set the value property: An IP or CIDR or ServiceTag.

Methods inherited from java.lang.Object

Constructor Details

IpRule

public IpRule()

Creates an instance of IpRule class.

Method Details

action

public AclAction action()

Get the action property: Azure Networking ACL Action.

Returns:

the action value.

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: An IP or CIDR or ServiceTag.

Returns:

the value value.

withAction

public IpRule withAction(AclAction action)

Set the action property: Azure Networking ACL Action.

Parameters:

action - the action value to set.

Returns:

the IpRule object itself.

withValue

public IpRule withValue(String value)

Set the value property: An IP or CIDR or ServiceTag.

Parameters:

value - the value value to set.

Returns:

the IpRule object itself.

Applies to