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 TargetAlertPolicyAssociationbuild()TargetAlertPolicyAssociation.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the policy.TargetAlertPolicyAssociation.Buildercopy(TargetAlertPolicyAssociation model)TargetAlertPolicyAssociation.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.TargetAlertPolicyAssociation.Builderdescription(String description)Describes the target-alert policy association.TargetAlertPolicyAssociation.BuilderdisplayName(String displayName)The display name of the target-alert policy association.TargetAlertPolicyAssociation.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.TargetAlertPolicyAssociation.Builderid(String id)The OCID of the target-alert policy association.TargetAlertPolicyAssociation.BuilderisEnabled(Boolean isEnabled)Indicates if the target-alert policy association is enabled or disabled by user.TargetAlertPolicyAssociation.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the target-alert policy association.TargetAlertPolicyAssociation.BuilderlifecycleState(AlertPolicyLifecycleState lifecycleState)The current state of the target-alert policy association.TargetAlertPolicyAssociation.BuilderpolicyId(String policyId)The OCID of the alert policy.TargetAlertPolicyAssociation.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.TargetAlertPolicyAssociation.BuildertargetId(String targetId)The OCID of the target on which alert policy is to be applied.TargetAlertPolicyAssociation.BuildertimeCreated(Date timeCreated)Creation date and time of the alert policy, in the format defined by RFC3339.TargetAlertPolicyAssociation.BuildertimeUpdated(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)
-
-