Package com.oracle.bmc.datasafe.model
Class AlertPolicySummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.AlertPolicySummary.Builder
-
- Enclosing class:
- AlertPolicySummary
public static class AlertPolicySummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertPolicySummary.BuilderalertPolicyType(AlertPolicyType alertPolicyType)Indicates the Data Safe feature that the alert policy belongs to.AlertPolicySummarybuild()AlertPolicySummary.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the alert policy.AlertPolicySummary.Buildercopy(AlertPolicySummary model)AlertPolicySummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.AlertPolicySummary.Builderdescription(String description)The details of the alert policy.AlertPolicySummary.BuilderdisplayName(String displayName)The display name of the alert policy.AlertPolicySummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.AlertPolicySummary.Builderid(String id)The OCID of the alert policy.AlertPolicySummary.BuilderisUserDefined(Boolean isUserDefined)Indicates if the alert policy is user-defined (true) or pre-defined (false).AlertPolicySummary.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the alert policy.AlertPolicySummary.BuilderlifecycleState(AlertPolicyLifecycleState lifecycleState)The current state of the alert policy.AlertPolicySummary.Builderseverity(AlertSeverity severity)Severity level of the alert raised by this policy.AlertPolicySummary.BuildertimeCreated(Date timeCreated)Creation date and time of the alert policy, in the format defined by RFC3339.AlertPolicySummary.BuildertimeUpdated(Date timeUpdated)Last date and time the alert policy was updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public AlertPolicySummary.Builder id(String id)
The OCID of the alert policy.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public AlertPolicySummary.Builder displayName(String displayName)
The display name of the alert policy.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public AlertPolicySummary.Builder description(String description)
The details of the alert policy.- Parameters:
description- the value to set- Returns:
- this builder
-
alertPolicyType
public AlertPolicySummary.Builder alertPolicyType(AlertPolicyType alertPolicyType)
Indicates the Data Safe feature that the alert policy belongs to.- Parameters:
alertPolicyType- the value to set- Returns:
- this builder
-
isUserDefined
public AlertPolicySummary.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 AlertPolicySummary.Builder severity(AlertSeverity severity)
Severity level of the alert raised by this policy.- Parameters:
severity- the value to set- Returns:
- this builder
-
compartmentId
public AlertPolicySummary.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 AlertPolicySummary.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 AlertPolicySummary.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 AlertPolicySummary.Builder lifecycleState(AlertPolicyLifecycleState lifecycleState)
The current state of the alert policy.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public AlertPolicySummary.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the alert policy.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
freeformTags
public AlertPolicySummary.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 AlertPolicySummary.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 AlertPolicySummary build()
-
copy
public AlertPolicySummary.Builder copy(AlertPolicySummary model)
-
-