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.BuilderalertPolicyRuleKey(String alertPolicyRuleKey)The key of the rule of alert policy that triggered alert.AlertSummary.BuilderalertPolicyRuleName(String alertPolicyRuleName)The display name of the rule of alert policy that triggered alert.AlertSummary.BuilderalertType(AlertType alertType)Type of the alert.AlertSummarybuild()AlertSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the alert.AlertSummary.Buildercopy(AlertSummary model)AlertSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.AlertSummary.Builderdescription(String description)The details of the alert.AlertSummary.BuilderdisplayName(String displayName)The display name of the alert.AlertSummary.BuilderfeatureDetails(Map<String,Map<String,Object>> featureDetails)Map that contains maps of values.AlertSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.AlertSummary.Builderid(String id)The OCID of the alert.AlertSummary.BuilderlifecycleState(AlertLifecycleState lifecycleState)The current state of the alert.AlertSummary.Builderoperation(String operation)The operation that triggered alert.AlertSummary.BuilderoperationStatus(AlertSummary.OperationStatus operationStatus)The result of the operation (event) that triggered alert.AlertSummary.BuilderoperationTime(Date operationTime)Creation date and time of the operation that triggered alert, in the format defined by RFC3339.AlertSummary.BuilderpolicyId(String policyId)The OCID of the policy that triggered alert.AlertSummary.Builderseverity(AlertSeverity severity)Severity level of the alert.AlertSummary.Builderstatus(AlertStatus status)The status of the alert.AlertSummary.BuildertargetIds(List<String> targetIds)Array of OCIDs of the target database.AlertSummary.BuildertargetNames(List<String> targetNames)Array of names of the target database.AlertSummary.BuildertimeCreated(Date timeCreated)Creation date and time of the alert, in the format defined by RFC3339.AlertSummary.BuildertimeUpdated(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)
-
-