Package com.oracle.bmc.datasafe.model
Class Alert.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.Alert.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Alert.Builder
alertPolicyRuleKey(String alertPolicyRuleKey)
The key of the rule of alert policy that triggered alert.Alert.Builder
alertPolicyRuleName(String alertPolicyRuleName)
The display name of the rule of alert policy that triggered alert.Alert.Builder
alertType(AlertType alertType)
Type of the alert.Alert
build()
Alert.Builder
comment(String comment)
A comment for the alert.Alert.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the alert.Alert.Builder
copy(Alert model)
Alert.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Alert.Builder
description(String description)
The description of the alert.Alert.Builder
displayName(String displayName)
The display name of the alert.Alert.Builder
featureDetails(Map<String,Map<String,Object>> featureDetails)
Map that contains maps of values.Alert.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Alert.Builder
id(String id)
The OCID of the alert.Alert.Builder
lifecycleState(AlertLifecycleState lifecycleState)
The current state of the alert.Alert.Builder
operation(String operation)
The operation (event) that triggered alert.Alert.Builder
operationStatus(Alert.OperationStatus operationStatus)
The result of the operation (event) that triggered alert.Alert.Builder
operationTime(Date operationTime)
Creation date and time of the operation that triggered alert, in the format defined by RFC3339.Alert.Builder
policyId(String policyId)
The OCID of the policy that triggered alert.Alert.Builder
resourceName(String resourceName)
The resource endpoint that triggered the alert.Alert.Builder
severity(AlertSeverity severity)
Severity level of the alert.Alert.Builder
status(AlertStatus status)
The status of the alert.Alert.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Alert.Builder
targetIds(List<String> targetIds)
Array of OCIDs of the target database which are associated with the alert.Alert.Builder
targetNames(List<String> targetNames)
Array of names of the target database.Alert.Builder
timeCreated(Date timeCreated)
Creation date and time of the alert, in the format defined by RFC3339.Alert.Builder
timeUpdated(Date timeUpdated)
Last date and time the alert was updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public Alert.Builder id(String id)
The OCID of the alert.- Parameters:
id
- the value to set- Returns:
- this builder
-
status
public Alert.Builder status(AlertStatus status)
The status of the alert.- Parameters:
status
- the value to set- Returns:
- this builder
-
severity
public Alert.Builder severity(AlertSeverity severity)
Severity level of the alert.- Parameters:
severity
- the value to set- Returns:
- this builder
-
displayName
public Alert.Builder displayName(String displayName)
The display name of the alert.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public Alert.Builder description(String description)
The description of the alert.- Parameters:
description
- the value to set- Returns:
- this builder
-
operationTime
public Alert.Builder operationTime(Date operationTime)
Creation date and time of the operation that triggered alert, in the format defined by RFC3339.- Parameters:
operationTime
- the value to set- Returns:
- this builder
-
operation
public Alert.Builder operation(String operation)
The operation (event) that triggered alert.- Parameters:
operation
- the value to set- Returns:
- this builder
-
operationStatus
public Alert.Builder operationStatus(Alert.OperationStatus operationStatus)
The result of the operation (event) that triggered alert.- Parameters:
operationStatus
- the value to set- Returns:
- this builder
-
targetIds
public Alert.Builder targetIds(List<String> targetIds)
Array of OCIDs of the target database which are associated with the alert.- Parameters:
targetIds
- the value to set- Returns:
- this builder
-
targetNames
public Alert.Builder targetNames(List<String> targetNames)
Array of names of the target database.- Parameters:
targetNames
- the value to set- Returns:
- this builder
-
policyId
public Alert.Builder policyId(String policyId)
The OCID of the policy that triggered alert.- Parameters:
policyId
- the value to set- Returns:
- this builder
-
alertType
public Alert.Builder alertType(AlertType alertType)
Type of the alert.Indicates the Data Safe feature triggering the alert.
- Parameters:
alertType
- the value to set- Returns:
- this builder
-
resourceName
public Alert.Builder resourceName(String resourceName)
The resource endpoint that triggered the alert.- Parameters:
resourceName
- the value to set- Returns:
- this builder
-
featureDetails
public Alert.Builder featureDetails(Map<String,Map<String,Object>> featureDetails)
Map that contains maps of values.Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
featureDetails
- the value to set- Returns:
- this builder
-
comment
public Alert.Builder comment(String comment)
A comment for the alert.Entered by the user.
- Parameters:
comment
- the value to set- Returns:
- this builder
-
compartmentId
public Alert.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the alert.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
lifecycleState
public Alert.Builder lifecycleState(AlertLifecycleState lifecycleState)
The current state of the alert.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public Alert.Builder timeCreated(Date timeCreated)
Creation date and time of the alert, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Alert.Builder timeUpdated(Date timeUpdated)
Last date and time the alert was updated, in the format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
alertPolicyRuleKey
public Alert.Builder alertPolicyRuleKey(String alertPolicyRuleKey)
The key of the rule of alert policy that triggered alert.- Parameters:
alertPolicyRuleKey
- the value to set- Returns:
- this builder
-
alertPolicyRuleName
public Alert.Builder alertPolicyRuleName(String alertPolicyRuleName)
The display name of the rule of alert policy that triggered alert.- Parameters:
alertPolicyRuleName
- the value to set- Returns:
- this builder
-
freeformTags
public Alert.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 Alert.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 Alert.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 Alert build()
-
copy
public Alert.Builder copy(Alert model)
-
-