NetworkRuleSets Class

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

Implements

public final class NetworkRuleSets
implements JsonSerializable<NetworkRuleSets>

Network Rule Set Properties of this IoT Central application.

Constructor Summary

Constructor Description
NetworkRuleSets()

Creates an instance of NetworkRuleSets class.

Method Summary

Modifier and Type Method and Description
Boolean applyToDevices()

Get the applyToDevices property: Whether these rules apply for device connectivity to IoT Hub and Device Provisioning service associated with this application.

Boolean applyToIoTCentral()

Get the applyToIoTCentral property: Whether these rules apply for connectivity via IoT Central web portal and APIs.

NetworkAction defaultAction()

Get the defaultAction property: The default network action to apply.

static NetworkRuleSets fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSets from the JsonReader.

List<NetworkRuleSetIpRule> ipRules()

Get the ipRules property: List of IP rules.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkRuleSets withApplyToDevices(Boolean applyToDevices)

Set the applyToDevices property: Whether these rules apply for device connectivity to IoT Hub and Device Provisioning service associated with this application.

NetworkRuleSets withApplyToIoTCentral(Boolean applyToIoTCentral)

Set the applyToIoTCentral property: Whether these rules apply for connectivity via IoT Central web portal and APIs.

NetworkRuleSets withDefaultAction(NetworkAction defaultAction)

Set the defaultAction property: The default network action to apply.

NetworkRuleSets withIpRules(List<NetworkRuleSetIpRule> ipRules)

Set the ipRules property: List of IP rules.

Methods inherited from java.lang.Object

Constructor Details

NetworkRuleSets

public NetworkRuleSets()

Creates an instance of NetworkRuleSets class.

Method Details

applyToDevices

public Boolean applyToDevices()

Get the applyToDevices property: Whether these rules apply for device connectivity to IoT Hub and Device Provisioning service associated with this application.

Returns:

the applyToDevices value.

applyToIoTCentral

public Boolean applyToIoTCentral()

Get the applyToIoTCentral property: Whether these rules apply for connectivity via IoT Central web portal and APIs.

Returns:

the applyToIoTCentral value.

defaultAction

public NetworkAction defaultAction()

Get the defaultAction property: The default network action to apply.

Returns:

the defaultAction value.

fromJson

public static NetworkRuleSets fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSets from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipRules

public List<NetworkRuleSetIpRule> ipRules()

Get the ipRules property: List of IP rules.

Returns:

the ipRules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withApplyToDevices

public NetworkRuleSets withApplyToDevices(Boolean applyToDevices)

Set the applyToDevices property: Whether these rules apply for device connectivity to IoT Hub and Device Provisioning service associated with this application.

Parameters:

applyToDevices - the applyToDevices value to set.

Returns:

the NetworkRuleSets object itself.

withApplyToIoTCentral

public NetworkRuleSets withApplyToIoTCentral(Boolean applyToIoTCentral)

Set the applyToIoTCentral property: Whether these rules apply for connectivity via IoT Central web portal and APIs.

Parameters:

applyToIoTCentral - the applyToIoTCentral value to set.

Returns:

the NetworkRuleSets object itself.

withDefaultAction

public NetworkRuleSets withDefaultAction(NetworkAction defaultAction)

Set the defaultAction property: The default network action to apply.

Parameters:

defaultAction - the defaultAction value to set.

Returns:

the NetworkRuleSets object itself.

withIpRules

public NetworkRuleSets withIpRules(List<NetworkRuleSetIpRule> ipRules)

Set the ipRules property: List of IP rules.

Parameters:

ipRules - the ipRules value to set.

Returns:

the NetworkRuleSets object itself.

Applies to