Class NetworkRuleSetProperties


  • public final class NetworkRuleSetProperties
    extends Object
    Network Rule Set Properties of IotHub.
    • Constructor Detail

      • NetworkRuleSetProperties

        public NetworkRuleSetProperties()
    • 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.