Package com.oracle.bmc.datasafe.model
Class CreateAlertPolicyDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.CreateAlertPolicyDetails.Builder
-
- Enclosing class:
- CreateAlertPolicyDetails
public static class CreateAlertPolicyDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
alertPolicyType
public CreateAlertPolicyDetails.Builder alertPolicyType(AlertPolicyType alertPolicyType)
Indicates the Data Safe feature the alert policy belongs to- Parameters:
alertPolicyType
- the value to set- Returns:
- this builder
-
displayName
public CreateAlertPolicyDetails.Builder displayName(String displayName)
The display name of the alert policy.The name does not have to be unique, and it’s changeable.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public CreateAlertPolicyDetails.Builder description(String description)
The description of the alert policy.- Parameters:
description
- the value to set- Returns:
- this builder
-
severity
public CreateAlertPolicyDetails.Builder severity(AlertSeverity severity)
Severity level of the alert raised by this policy.- Parameters:
severity
- the value to set- Returns:
- this builder
-
compartmentId
public CreateAlertPolicyDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment where you want to create the alert policy.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
alertPolicyRuleDetails
public CreateAlertPolicyDetails.Builder alertPolicyRuleDetails(List<CreateAlertPolicyRuleDetails> alertPolicyRuleDetails)
The details of the alert policy rule.- Parameters:
alertPolicyRuleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public CreateAlertPolicyDetails.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public CreateAlertPolicyDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public CreateAlertPolicyDetails build()
-
copy
public CreateAlertPolicyDetails.Builder copy(CreateAlertPolicyDetails model)
-
-