NetworkRuleSets Class
- java.
lang. Object - com.
azure. resourcemanager. iotcentral. models. NetworkRuleSets
- com.
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 Network |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
applyToDevices()
Get the apply |
| Boolean |
applyToIoTCentral()
Get the apply |
|
Network |
defaultAction()
Get the default |
|
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
|
List<Network |
ipRules()
Get the ip |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Network |
withApplyToDevices(Boolean applyToDevices)
Set the apply |
|
Network |
withApplyToIoTCentral(Boolean applyToIoTCentral)
Set the apply |
|
Network |
withDefaultAction(NetworkAction defaultAction)
Set the default |
|
Network |
withIpRules(List<NetworkRuleSetIpRule> ipRules)
Set the ip |
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:
applyToIoTCentral
public Boolean applyToIoTCentral()
Get the applyToIoTCentral property: Whether these rules apply for connectivity via IoT Central web portal and APIs.
Returns:
defaultAction
public NetworkAction defaultAction()
Get the defaultAction property: The default network action to apply.
Returns:
fromJson
public static NetworkRuleSets fromJson(JsonReader jsonReader)
Reads an instance of NetworkRuleSets from the JsonReader.
Parameters:
Returns:
Throws:
ipRules
public List<NetworkRuleSetIpRule> ipRules()
Get the ipRules property: List of IP rules.
Returns:
toJson
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:
Returns:
withApplyToIoTCentral
public NetworkRuleSets withApplyToIoTCentral(Boolean applyToIoTCentral)
Set the applyToIoTCentral property: Whether these rules apply for connectivity via IoT Central web portal and APIs.
Parameters:
Returns:
withDefaultAction
public NetworkRuleSets withDefaultAction(NetworkAction defaultAction)
Set the defaultAction property: The default network action to apply.
Parameters:
Returns:
withIpRules
public NetworkRuleSets withIpRules(List<NetworkRuleSetIpRule> ipRules)
Set the ipRules property: List of IP rules.
Parameters:
Returns: