Package com.oracle.bmc.monitoring.model
Class AlarmSuppressionCompartmentTarget.Builder
- java.lang.Object
-
- com.oracle.bmc.monitoring.model.AlarmSuppressionCompartmentTarget.Builder
-
- Enclosing class:
- AlarmSuppressionCompartmentTarget
public static class AlarmSuppressionCompartmentTarget.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlarmSuppressionCompartmentTargetbuild()AlarmSuppressionCompartmentTarget.BuildercompartmentId(String compartmentId)The OCID of the compartment or tenancy that is the target of the alarm suppression.AlarmSuppressionCompartmentTarget.BuildercompartmentIdInSubtree(Boolean compartmentIdInSubtree)When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified.AlarmSuppressionCompartmentTarget.Buildercopy(AlarmSuppressionCompartmentTarget model)
-
-
-
Method Detail
-
compartmentId
public AlarmSuppressionCompartmentTarget.Builder compartmentId(String compartmentId)
The OCID of the compartment or tenancy that is the target of the alarm suppression.Example: ocid1.compartment.oc1..exampleuniqueID
- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
compartmentIdInSubtree
public AlarmSuppressionCompartmentTarget.Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree)
When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified.The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
- Parameters:
compartmentIdInSubtree- the value to set- Returns:
- this builder
-
build
public AlarmSuppressionCompartmentTarget build()
-
copy
public AlarmSuppressionCompartmentTarget.Builder copy(AlarmSuppressionCompartmentTarget model)
-
-