Class Rule.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.Rule.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Builderbasis(String basis)Based on what the rule is created.Rulebuild()Rule.BuildercompartmentId(String compartmentId)Compartment Id for which the rule is created.Rule.Builderconditions(List<Condition> conditions)Rule ConditionsRule.Buildercopy(Rule model)Rule.BuilderresourceCompartmentId(String resourceCompartmentId)The Compartment ID to dynamically search resources.
-
-
-
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)
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()
-
copy
public Rule.Builder copy(Rule model)
-
-