Class Rule.Builder

  • Enclosing class:
    Rule

    public static class Rule.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • basis

        public Rule.Builder basis​(String basis)
        Based on what the rule is created.

        It can be based on a resourceProperty or a tag. If based on a tag, basis will be ‘definedTagEquals’ If based on a resource property, basis will be ‘inventoryProperties’

        Parameters:
        basis - the value to set
        Returns:
        this builder
      • compartmentId

        public Rule.Builder compartmentId​(String compartmentId)
        Tenancy Id (Root Compartment Id)for which the rule is created.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • resourceCompartmentId

        public Rule.Builder resourceCompartmentId​(String resourceCompartmentId)
        The Compartment ID to dynamically search resources.

        Provide the compartment ID to which the rule is applicable.

        Parameters:
        resourceCompartmentId - the value to set
        Returns:
        this builder
      • conditions

        public Rule.Builder conditions​(List<Condition> conditions)
        Rule Conditions
        Parameters:
        conditions - the value to set
        Returns:
        this builder
      • build

        public Rule build()