Compartir a través de


NWRuleSetIpRules Class

  • java.lang.Object
    • com.azure.resourcemanager.servicebus.models.NWRuleSetIpRules

Implements

public final class NWRuleSetIpRules
implements JsonSerializable<NWRuleSetIpRules>

Description of NetWorkRuleSet - IpRules resource.

Constructor Summary

Constructor Description
NWRuleSetIpRules()

Creates an instance of NWRuleSetIpRules class.

Method Summary

Modifier and Type Method and Description
NetworkRuleIpAction action()

Get the action property: The IP Filter Action.

static NWRuleSetIpRules fromJson(JsonReader jsonReader)

Reads an instance of NWRuleSetIpRules from the JsonReader.

String ipMask()

Get the ipMask property: IP Mask.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NWRuleSetIpRules withAction(NetworkRuleIpAction action)

Set the action property: The IP Filter Action.

NWRuleSetIpRules withIpMask(String ipMask)

Set the ipMask property: IP Mask.

Methods inherited from java.lang.Object

Constructor Details

NWRuleSetIpRules

public NWRuleSetIpRules()

Creates an instance of NWRuleSetIpRules class.

Method Details

action

public NetworkRuleIpAction action()

Get the action property: The IP Filter Action.

Returns:

the action value.

fromJson

public static NWRuleSetIpRules fromJson(JsonReader jsonReader)

Reads an instance of NWRuleSetIpRules from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NWRuleSetIpRules 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 NWRuleSetIpRules.

ipMask

public String ipMask()

Get the ipMask property: IP Mask.

Returns:

the ipMask value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAction

public NWRuleSetIpRules withAction(NetworkRuleIpAction action)

Set the action property: The IP Filter Action.

Parameters:

action - the action value to set.

Returns:

the NWRuleSetIpRules object itself.

withIpMask

public NWRuleSetIpRules withIpMask(String ipMask)

Set the ipMask property: IP Mask.

Parameters:

ipMask - the ipMask value to set.

Returns:

the NWRuleSetIpRules object itself.

Applies to