Class NetworkRuleSetProperties
- java.lang.Object
-
- com.azure.resourcemanager.iothub.models.NetworkRuleSetProperties
-
public final class NetworkRuleSetProperties extends Object
Network Rule Set Properties of IotHub.
-
-
Constructor Summary
Constructors Constructor Description NetworkRuleSetProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applyToBuiltInEventHubEndpoint()
Get the applyToBuiltInEventHubEndpoint property: If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub.DefaultAction
defaultAction()
Get the defaultAction property: Default Action for Network Rule Set.List<NetworkRuleSetIpRule>
ipRules()
Get the ipRules property: List of IP Rules.void
validate()
Validates the instance.NetworkRuleSetProperties
withApplyToBuiltInEventHubEndpoint(boolean applyToBuiltInEventHubEndpoint)
Set the applyToBuiltInEventHubEndpoint property: If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub.NetworkRuleSetProperties
withDefaultAction(DefaultAction defaultAction)
Set the defaultAction property: Default Action for Network Rule Set.NetworkRuleSetProperties
withIpRules(List<NetworkRuleSetIpRule> ipRules)
Set the ipRules property: List of IP Rules.
-
-
-
Method Detail
-
defaultAction
public DefaultAction defaultAction()
Get the defaultAction property: Default Action for Network Rule Set.- Returns:
- the defaultAction value.
-
withDefaultAction
public NetworkRuleSetProperties withDefaultAction(DefaultAction defaultAction)
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
public List<NetworkRuleSetIpRule> ipRules()
Get the ipRules property: List of IP Rules.- Returns:
- the ipRules value.
-
withIpRules
public NetworkRuleSetProperties withIpRules(List<NetworkRuleSetIpRule> ipRules)
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.
-
-