public static class TargetAlertPolicyAssociation.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TargetAlertPolicyAssociation |
build() |
TargetAlertPolicyAssociation.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the policy.
|
TargetAlertPolicyAssociation.Builder |
copy(TargetAlertPolicyAssociation model) |
TargetAlertPolicyAssociation.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
TargetAlertPolicyAssociation.Builder |
description(String description)
Describes the target-alert policy association.
|
TargetAlertPolicyAssociation.Builder |
displayName(String displayName)
The display name of the target-alert policy association.
|
TargetAlertPolicyAssociation.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
TargetAlertPolicyAssociation.Builder |
id(String id)
The OCID of the target-alert policy association.
|
TargetAlertPolicyAssociation.Builder |
isEnabled(Boolean isEnabled)
Indicates if the target-alert policy association is enabled or disabled by user.
|
TargetAlertPolicyAssociation.Builder |
lifecycleDetails(String lifecycleDetails)
Details about the current state of the target-alert policy association.
|
TargetAlertPolicyAssociation.Builder |
lifecycleState(AlertPolicyLifecycleState lifecycleState)
The current state of the target-alert policy association.
|
TargetAlertPolicyAssociation.Builder |
policyId(String policyId)
The OCID of the alert policy.
|
TargetAlertPolicyAssociation.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.
|
TargetAlertPolicyAssociation.Builder |
targetId(String targetId)
The OCID of the target on which alert policy is to be applied.
|
TargetAlertPolicyAssociation.Builder |
timeCreated(Date timeCreated)
Creation date and time of the alert policy, in the format defined by
RFC3339.
|
TargetAlertPolicyAssociation.Builder |
timeUpdated(Date timeUpdated)
Last date and time the alert policy was updated, in the format defined by
RFC3339.
|
public TargetAlertPolicyAssociation.Builder id(String id)
The OCID of the target-alert policy association.
id
- the value to setpublic TargetAlertPolicyAssociation.Builder displayName(String displayName)
The display name of the target-alert policy association.
displayName
- the value to setpublic TargetAlertPolicyAssociation.Builder description(String description)
Describes the target-alert policy association.
description
- the value to setpublic TargetAlertPolicyAssociation.Builder policyId(String policyId)
The OCID of the alert policy.
policyId
- the value to setpublic TargetAlertPolicyAssociation.Builder targetId(String targetId)
The OCID of the target on which alert policy is to be applied.
targetId
- the value to setpublic TargetAlertPolicyAssociation.Builder isEnabled(Boolean isEnabled)
Indicates if the target-alert policy association is enabled or disabled by user.
isEnabled
- the value to setpublic TargetAlertPolicyAssociation.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the policy.
compartmentId
- the value to setpublic TargetAlertPolicyAssociation.Builder timeCreated(Date timeCreated)
Creation date and time of the alert policy, in the format defined by RFC3339.
timeCreated
- the value to setpublic TargetAlertPolicyAssociation.Builder timeUpdated(Date timeUpdated)
Last date and time the alert policy was updated, in the format defined by RFC3339.
timeUpdated
- the value to setpublic TargetAlertPolicyAssociation.Builder lifecycleState(AlertPolicyLifecycleState lifecycleState)
The current state of the target-alert policy association.
lifecycleState
- the value to setpublic TargetAlertPolicyAssociation.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the target-alert policy association.
lifecycleDetails
- the value to setpublic TargetAlertPolicyAssociation.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 TargetAlertPolicyAssociation.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 TargetAlertPolicyAssociation.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"}}
systemTags
- the value to setpublic TargetAlertPolicyAssociation build()
public TargetAlertPolicyAssociation.Builder copy(TargetAlertPolicyAssociation model)
Copyright © 2016–2024. All rights reserved.