Package com.oracle.bmc.datasafe.model
Class AlertSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.AlertSummary.Builder
-
- Enclosing class:
- AlertSummary
public static class AlertSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertSummary.Builder
alertPolicyRuleKey(String alertPolicyRuleKey)
The key of the rule of alert policy that triggered alert.AlertSummary.Builder
alertPolicyRuleName(String alertPolicyRuleName)
The display name of the rule of alert policy that triggered alert.AlertSummary.Builder
alertType(AlertType alertType)
Type of the alert.AlertSummary
build()
AlertSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the alert.AlertSummary.Builder
copy(AlertSummary model)
AlertSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.AlertSummary.Builder
description(String description)
The details of the alert.AlertSummary.Builder
displayName(String displayName)
The display name of the alert.AlertSummary.Builder
featureDetails(Map<String,Map<String,Object>> featureDetails)
Map that contains maps of values.AlertSummary.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.AlertSummary.Builder
id(String id)
The OCID of the alert.AlertSummary.Builder
lifecycleState(AlertLifecycleState lifecycleState)
The current state of the alert.AlertSummary.Builder
operation(String operation)
The operation that triggered alert.AlertSummary.Builder
operationStatus(AlertSummary.OperationStatus operationStatus)
The result of the operation (event) that triggered alert.AlertSummary.Builder
operationTime(Date operationTime)
Creation date and time of the operation that triggered alert, in the format defined by RFC3339.AlertSummary.Builder
policyId(String policyId)
The OCID of the policy that triggered alert.AlertSummary.Builder
severity(AlertSeverity severity)
Severity level of the alert.AlertSummary.Builder
status(AlertStatus status)
The status of the alert.AlertSummary.Builder
targetIds(List<String> targetIds)
Array of OCIDs of the target database.AlertSummary.Builder
targetNames(List<String> targetNames)
Array of names of the target database.AlertSummary.Builder
timeCreated(Date timeCreated)
Creation date and time of the alert, in the format defined by RFC3339.AlertSummary.Builder
timeUpdated(Date timeUpdated)
Last date and time the alert was updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public AlertSummary.Builder id(String id)
The OCID of the alert.- Parameters:
id
- the value to set- Returns:
- this builder
-
status
public AlertSummary.Builder status(AlertStatus status)
The status of the alert.- Parameters:
status
- the value to set- Returns:
- this builder
-
displayName
public AlertSummary.Builder displayName(String displayName)
The display name of the alert.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public AlertSummary.Builder description(String description)
The details of the alert.- Parameters:
description
- the value to set- Returns:
- this builder
-
severity
public AlertSummary.Builder severity(AlertSeverity severity)
Severity level of the alert.- Parameters:
severity
- the value to set- Returns:
- this builder
-
operationTime
public AlertSummary.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 AlertSummary.Builder operation(String operation)
The operation that triggered alert.- Parameters:
operation
- the value to set- Returns:
- this builder
-
operationStatus
public AlertSummary.Builder operationStatus(AlertSummary.OperationStatus operationStatus)
The result of the operation (event) that triggered alert.- Parameters:
operationStatus
- the value to set- Returns:
- this builder
-
targetIds
public AlertSummary.Builder targetIds(List<String> targetIds)
Array of OCIDs of the target database.- Parameters:
targetIds
- the value to set- Returns:
- this builder
-
targetNames
public AlertSummary.Builder targetNames(List<String> targetNames)
Array of names of the target database.- Parameters:
targetNames
- the value to set- Returns:
- this builder
-
policyId
public AlertSummary.Builder policyId(String policyId)
The OCID of the policy that triggered alert.- Parameters:
policyId
- the value to set- Returns:
- this builder
-
alertType
public AlertSummary.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
-
compartmentId
public AlertSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the alert.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public AlertSummary.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 AlertSummary.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
-
lifecycleState
public AlertSummary.Builder lifecycleState(AlertLifecycleState lifecycleState)
The current state of the alert.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
alertPolicyRuleKey
public AlertSummary.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 AlertSummary.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
-
featureDetails
public AlertSummary.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
-
freeformTags
public AlertSummary.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 AlertSummary.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 AlertSummary build()
-
copy
public AlertSummary.Builder copy(AlertSummary model)
-
-