Class NetworkRuleSetProperties
java.lang.Object
com.azure.resourcemanager.iothub.models.NetworkRuleSetProperties
Network Rule Set Properties of IotHub.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the applyToBuiltInEventHubEndpoint property: If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub.Get the defaultAction property: Default Action for Network Rule Set.ipRules()
Get the ipRules property: List of IP Rules.void
validate()
Validates the instance.withApplyToBuiltInEventHubEndpoint
(boolean applyToBuiltInEventHubEndpoint) Set the applyToBuiltInEventHubEndpoint property: If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub.withDefaultAction
(DefaultAction defaultAction) Set the defaultAction property: Default Action for Network Rule Set.withIpRules
(List<NetworkRuleSetIpRule> ipRules) Set the ipRules property: List of IP Rules.
-
Constructor Details
-
NetworkRuleSetProperties
public NetworkRuleSetProperties()
-
-
Method Details
-
defaultAction
Get the defaultAction property: Default Action for Network Rule Set.- Returns:
- the defaultAction value.
-
withDefaultAction
Set the defaultAction property: Default Action for Network Rule Set.- Parameters:
defaultAction
- the defaultAction value to set.- Returns:
- the NetworkRuleSetProperties object itself.
-
applyToBuiltInEventHubEndpoint
public boolean applyToBuiltInEventHubEndpoint()Get the applyToBuiltInEventHubEndpoint property: If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub.- Returns:
- the applyToBuiltInEventHubEndpoint value.
-
withApplyToBuiltInEventHubEndpoint
public NetworkRuleSetProperties withApplyToBuiltInEventHubEndpoint(boolean applyToBuiltInEventHubEndpoint) Set the applyToBuiltInEventHubEndpoint property: If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub.- Parameters:
applyToBuiltInEventHubEndpoint
- the applyToBuiltInEventHubEndpoint value to set.- Returns:
- the NetworkRuleSetProperties object itself.
-
ipRules
Get the ipRules property: List of IP Rules.- Returns:
- the ipRules value.
-
withIpRules
Set the ipRules property: List of IP Rules.- Parameters:
ipRules
- the ipRules value to set.- Returns:
- the NetworkRuleSetProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-