Package com.oracle.bmc.datasafe.model
Class AlertPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.AlertPolicy.Builder
-
- Enclosing class:
- AlertPolicy
public static class AlertPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertPolicy.Builder
alertPolicyType(AlertPolicyType alertPolicyType)
Indicates the Data Safe feature to which the alert policy belongs.AlertPolicy
build()
AlertPolicy.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the alert policy.AlertPolicy.Builder
copy(AlertPolicy model)
AlertPolicy.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.AlertPolicy.Builder
description(String description)
The description of the alert policy.AlertPolicy.Builder
displayName(String displayName)
The display name of the alert policy.AlertPolicy.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.AlertPolicy.Builder
id(String id)
The OCID of the alert policy.AlertPolicy.Builder
isUserDefined(Boolean isUserDefined)
Indicates if the alert policy is user-defined (true) or pre-defined (false).AlertPolicy.Builder
lifecycleDetails(String lifecycleDetails)
Details about the current state of the alert policy.AlertPolicy.Builder
lifecycleState(AlertPolicyLifecycleState lifecycleState)
The current state of the alert.AlertPolicy.Builder
severity(AlertSeverity severity)
Severity level of the alert raised by this policy.AlertPolicy.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.AlertPolicy.Builder
timeCreated(Date timeCreated)
Creation date and time of the alert policy, in the format defined by RFC3339.AlertPolicy.Builder
timeUpdated(Date timeUpdated)
Last date and time the alert policy was updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public AlertPolicy.Builder id(String id)
The OCID of the alert policy.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public AlertPolicy.Builder displayName(String displayName)
The display name of the alert policy.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public AlertPolicy.Builder description(String description)
The description of the alert policy.- Parameters:
description
- the value to set- Returns:
- this builder
-
alertPolicyType
public AlertPolicy.Builder alertPolicyType(AlertPolicyType alertPolicyType)
Indicates the Data Safe feature to which the alert policy belongs.- Parameters:
alertPolicyType
- the value to set- Returns:
- this builder
-
isUserDefined
public AlertPolicy.Builder isUserDefined(Boolean isUserDefined)
Indicates if the alert policy is user-defined (true) or pre-defined (false).- Parameters:
isUserDefined
- the value to set- Returns:
- this builder
-
severity
public AlertPolicy.Builder severity(AlertSeverity severity)
Severity level of the alert raised by this policy.- Parameters:
severity
- the value to set- Returns:
- this builder
-
compartmentId
public AlertPolicy.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the alert policy.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public AlertPolicy.Builder timeCreated(Date timeCreated)
Creation date and time of the alert policy, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public AlertPolicy.Builder timeUpdated(Date timeUpdated)
Last date and time the alert policy was updated, in the format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public AlertPolicy.Builder lifecycleState(AlertPolicyLifecycleState lifecycleState)
The current state of the alert.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public AlertPolicy.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the alert policy.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public AlertPolicy.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 AlertPolicy.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
-
systemTags
public AlertPolicy.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public AlertPolicy build()
-
copy
public AlertPolicy.Builder copy(AlertPolicy model)
-
-