Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Rule.Builder |
basis(String basis)
Based on what the rule is created.
|
Rule |
build() |
Rule.Builder |
compartmentId(String compartmentId)
Tenancy Id (Root Compartment Id)for which the rule is created.
|
Rule.Builder |
conditions(List<Condition> conditions)
Rule Conditions
|
Rule.Builder |
copy(Rule model) |
Rule.Builder |
resourceCompartmentId(String resourceCompartmentId)
The Compartment ID to dynamically search resources.
|
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’
basis
- the value to setpublic Rule.Builder compartmentId(String compartmentId)
Tenancy Id (Root Compartment Id)for which the rule is created.
compartmentId
- the value to setpublic Rule.Builder resourceCompartmentId(String resourceCompartmentId)
The Compartment ID to dynamically search resources. Provide the compartment ID to which the rule is applicable.
resourceCompartmentId
- the value to setpublic Rule.Builder conditions(List<Condition> conditions)
Rule Conditions
conditions
- the value to setpublic Rule build()
public Rule.Builder copy(Rule model)
Copyright © 2016–2024. All rights reserved.