Class NetworkRuleSets
- java.lang.Object
-
- com.azure.resourcemanager.iotcentral.models.NetworkRuleSets
-
public final class NetworkRuleSets extends Object
Network Rule Set Properties of this IoT Central application.
-
-
Constructor Summary
Constructors Constructor Description NetworkRuleSets()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.List<NetworkRuleSetIpRule>
ipRules()
Get the ipRules property: List of IP rules.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.
-
-
-
Method Detail
-
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.
-
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.
-
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.
-
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.
-
defaultAction
public NetworkAction defaultAction()
Get the defaultAction property: The default network action to apply.- Returns:
- the defaultAction value.
-
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.
-
ipRules
public List<NetworkRuleSetIpRule> ipRules()
Get the ipRules property: List of IP rules.- Returns:
- the ipRules value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-