public static class CreateAlertPolicyDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
public CreateAlertPolicyDetails.Builder alertPolicyType(AlertPolicyType alertPolicyType)
Indicates the Data Safe feature the alert policy belongs to
alertPolicyType
- the value to setpublic CreateAlertPolicyDetails.Builder displayName(String displayName)
The display name of the alert policy. The name does not have to be unique, and it’s changeable.
displayName
- the value to setpublic CreateAlertPolicyDetails.Builder description(String description)
The description of the alert policy.
description
- the value to setpublic CreateAlertPolicyDetails.Builder severity(AlertSeverity severity)
Severity level of the alert raised by this policy.
severity
- the value to setpublic CreateAlertPolicyDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment where you want to create the alert policy.
compartmentId
- the value to setpublic CreateAlertPolicyDetails.Builder alertPolicyRuleDetails(List<CreateAlertPolicyRuleDetails> alertPolicyRuleDetails)
The details of the alert policy rule.
alertPolicyRuleDetails
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic CreateAlertPolicyDetails build()
public CreateAlertPolicyDetails.Builder copy(CreateAlertPolicyDetails model)
Copyright © 2016–2024. All rights reserved.