public static class AlertPolicySummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AlertPolicySummary.Builder |
alertPolicyType(AlertPolicyType alertPolicyType)
Indicates the Data Safe feature that the alert policy belongs to.
|
AlertPolicySummary |
build() |
AlertPolicySummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the alert policy.
|
AlertPolicySummary.Builder |
copy(AlertPolicySummary model) |
AlertPolicySummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
AlertPolicySummary.Builder |
description(String description)
The details of the alert policy.
|
AlertPolicySummary.Builder |
displayName(String displayName)
The display name of the alert policy.
|
AlertPolicySummary.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
AlertPolicySummary.Builder |
id(String id)
The OCID of the alert policy.
|
AlertPolicySummary.Builder |
isUserDefined(Boolean isUserDefined)
Indicates if the alert policy is user-defined (true) or pre-defined (false).
|
AlertPolicySummary.Builder |
lifecycleDetails(String lifecycleDetails)
Details about the current state of the alert policy.
|
AlertPolicySummary.Builder |
lifecycleState(AlertPolicyLifecycleState lifecycleState)
The current state of the alert policy.
|
AlertPolicySummary.Builder |
severity(AlertSeverity severity)
Severity level of the alert raised by this policy.
|
AlertPolicySummary.Builder |
timeCreated(Date timeCreated)
Creation date and time of the alert policy, in the format defined by
RFC3339.
|
AlertPolicySummary.Builder |
timeUpdated(Date timeUpdated)
Last date and time the alert policy was updated, in the format defined by
RFC3339.
|
public AlertPolicySummary.Builder id(String id)
The OCID of the alert policy.
id
- the value to setpublic AlertPolicySummary.Builder displayName(String displayName)
The display name of the alert policy.
displayName
- the value to setpublic AlertPolicySummary.Builder description(String description)
The details of the alert policy.
description
- the value to setpublic AlertPolicySummary.Builder alertPolicyType(AlertPolicyType alertPolicyType)
Indicates the Data Safe feature that the alert policy belongs to.
alertPolicyType
- the value to setpublic AlertPolicySummary.Builder isUserDefined(Boolean isUserDefined)
Indicates if the alert policy is user-defined (true) or pre-defined (false).
isUserDefined
- the value to setpublic AlertPolicySummary.Builder severity(AlertSeverity severity)
Severity level of the alert raised by this policy.
severity
- the value to setpublic AlertPolicySummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the alert policy.
compartmentId
- the value to setpublic AlertPolicySummary.Builder timeCreated(Date timeCreated)
Creation date and time of the alert policy, in the format defined by RFC3339.
timeCreated
- the value to setpublic AlertPolicySummary.Builder timeUpdated(Date timeUpdated)
Last date and time the alert policy was updated, in the format defined by RFC3339.
timeUpdated
- the value to setpublic AlertPolicySummary.Builder lifecycleState(AlertPolicyLifecycleState lifecycleState)
The current state of the alert policy.
lifecycleState
- the value to setpublic AlertPolicySummary.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the alert policy.
lifecycleDetails
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic AlertPolicySummary build()
public AlertPolicySummary.Builder copy(AlertPolicySummary model)
Copyright © 2016–2024. All rights reserved.