Class FlowRuleIntent


  • @Beta
    public class FlowRuleIntent
    extends Intent
    An intent that enables to tell flow level operation. This instance holds a collection of flow rules that may be executed in parallel.
    • Constructor Detail

      • FlowRuleIntent

        public FlowRuleIntent​(ApplicationId appId,
                              Key key,
                              Collection<FlowRule> flowRules,
                              Collection<NetworkResource> resources,
                              PathIntent.ProtectionType primary,
                              ResourceGroup resourceGroup)
        Creates a flow rule intent with the specified key, flow rules to be set, and required network resources.
        Parameters:
        appId - application id
        key - key
        flowRules - flow rules
        resources - network resources
        primary - primary protection type
        resourceGroup - resource group for this intent
      • FlowRuleIntent

        public FlowRuleIntent​(FlowRuleIntent intent,
                              PathIntent.ProtectionType type)
        Creates a flow rule intent with all the same characteristics as the given one except for the flow rule type.
        Parameters:
        intent - original flow rule intent
        type - new protection type
      • FlowRuleIntent

        protected FlowRuleIntent()
        Constructor for serializer.
    • Method Detail

      • flowRules

        public Collection<FlowRule> flowRules()
        Returns a collection of flow rules to be set.
        Returns:
        a collection of flow rules
      • isInstallable

        public boolean isInstallable()
        Description copied from class: Intent
        Indicates whether or not the intent is installable.
        Overrides:
        isInstallable in class Intent
        Returns:
        true if installable