IpRule Class

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

Implements

public final class IpRule
implements JsonSerializable<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.

static IpRule fromJson(JsonReader jsonReader)

Reads an instance of IpRule from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
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.

fromJson

public static IpRule fromJson(JsonReader jsonReader)

Reads an instance of IpRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IpRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the IpRule.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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