NetworkRuleSetIpRule Class

  • java.lang.Object
    • com.azure.resourcemanager.iotcentral.models.NetworkRuleSetIpRule

Implements

public final class NetworkRuleSetIpRule
implements JsonSerializable<NetworkRuleSetIpRule>

An object for an IP range that will be allowed access.

Constructor Summary

Constructor Description
NetworkRuleSetIpRule()

Creates an instance of NetworkRuleSetIpRule class.

Method Summary

Modifier and Type Method and Description
IpRuleAction action()

Get the action property: The network action for the IP mask.

String filterName()

Get the filterName property: The readable name of the IP rule.

static NetworkRuleSetIpRule fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSetIpRule from the JsonReader.

String ipMask()

Get the ipMask property: The CIDR block defining the IP range.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkRuleSetIpRule withFilterName(String filterName)

Set the filterName property: The readable name of the IP rule.

NetworkRuleSetIpRule withIpMask(String ipMask)

Set the ipMask property: The CIDR block defining the IP range.

Methods inherited from java.lang.Object

Constructor Details

NetworkRuleSetIpRule

public NetworkRuleSetIpRule()

Creates an instance of NetworkRuleSetIpRule class.

Method Details

action

public IpRuleAction action()

Get the action property: The network action for the IP mask.

Returns:

the action value.

filterName

public String filterName()

Get the filterName property: The readable name of the IP rule.

Returns:

the filterName value.

fromJson

public static NetworkRuleSetIpRule fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSetIpRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipMask

public String ipMask()

Get the ipMask property: The CIDR block defining the IP range.

Returns:

the ipMask value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFilterName

public NetworkRuleSetIpRule withFilterName(String filterName)

Set the filterName property: The readable name of the IP rule.

Parameters:

filterName - the filterName value to set.

Returns:

the NetworkRuleSetIpRule object itself.

withIpMask

public NetworkRuleSetIpRule withIpMask(String ipMask)

Set the ipMask property: The CIDR block defining the IP range.

Parameters:

ipMask - the ipMask value to set.

Returns:

the NetworkRuleSetIpRule object itself.

Applies to