Class CreateCompliancePolicyRuleDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.CreateCompliancePolicyRuleDetails.Builder
-
- Enclosing class:
- CreateCompliancePolicyRuleDetails
public static class CreateCompliancePolicyRuleDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
displayName
public CreateCompliancePolicyRuleDetails.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Example: My new resource
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
compliancePolicyId
public CreateCompliancePolicyRuleDetails.Builder compliancePolicyId(String compliancePolicyId)
Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.- Parameters:
compliancePolicyId
- the value to set- Returns:
- this builder
-
productVersion
public CreateCompliancePolicyRuleDetails.Builder productVersion(ProductVersionDetails productVersion)
-
patchType
public CreateCompliancePolicyRuleDetails.Builder patchType(List<String> patchType)
PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.- Parameters:
patchType
- the value to set- Returns:
- this builder
-
severity
public CreateCompliancePolicyRuleDetails.Builder severity(List<ComplianceRuleSeverity> severity)
Severity to which this CompliancePolicyRule applies.- Parameters:
severity
- the value to set- Returns:
- this builder
-
patchSelection
public CreateCompliancePolicyRuleDetails.Builder patchSelection(PatchSelectionDetails patchSelection)
-
gracePeriod
public CreateCompliancePolicyRuleDetails.Builder gracePeriod(String gracePeriod)
Grace period in days,weeks,months or years the exemption is applicable for the rule.This enables a grace period when Fleet Application Management doesn’t report the product as noncompliant when patch is not applied.
- Parameters:
gracePeriod
- the value to set- Returns:
- this builder
-
compartmentId
public CreateCompliancePolicyRuleDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment the CompliancePolicyRule belongs to.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
freeformTags
public CreateCompliancePolicyRuleDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public CreateCompliancePolicyRuleDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public CreateCompliancePolicyRuleDetails build()
-
copy
public CreateCompliancePolicyRuleDetails.Builder copy(CreateCompliancePolicyRuleDetails model)
-
-