Package com.oracle.bmc.datasafe.model
Class TargetAlertPolicyAssociation.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.TargetAlertPolicyAssociation.Builder
-
- Enclosing class:
- TargetAlertPolicyAssociation
public static class TargetAlertPolicyAssociation.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
id
public TargetAlertPolicyAssociation.Builder id(String id)
The OCID of the target-alert policy association.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public TargetAlertPolicyAssociation.Builder displayName(String displayName)
The display name of the target-alert policy association.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public TargetAlertPolicyAssociation.Builder description(String description)
Describes the target-alert policy association.- Parameters:
description
- the value to set- Returns:
- this builder
-
policyId
public TargetAlertPolicyAssociation.Builder policyId(String policyId)
The OCID of the alert policy.- Parameters:
policyId
- the value to set- Returns:
- this builder
-
targetId
public TargetAlertPolicyAssociation.Builder targetId(String targetId)
The OCID of the target on which alert policy is to be applied.- Parameters:
targetId
- the value to set- Returns:
- this builder
-
isEnabled
public TargetAlertPolicyAssociation.Builder isEnabled(Boolean isEnabled)
Indicates if the target-alert policy association is enabled or disabled by user.- Parameters:
isEnabled
- the value to set- Returns:
- this builder
-
compartmentId
public TargetAlertPolicyAssociation.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the policy.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public TargetAlertPolicyAssociation.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 TargetAlertPolicyAssociation.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 TargetAlertPolicyAssociation.Builder lifecycleState(AlertPolicyLifecycleState lifecycleState)
The current state of the target-alert policy association.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public TargetAlertPolicyAssociation.Builder lifecycleDetails(String lifecycleDetails)
Details about the current state of the target-alert policy association.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public 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"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public 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”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public 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”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public TargetAlertPolicyAssociation build()
-
copy
public TargetAlertPolicyAssociation.Builder copy(TargetAlertPolicyAssociation model)
-
-