public static class CompliancePolicyRuleSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CompliancePolicyRuleSummary |
build() |
CompliancePolicyRuleSummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment the CompliancePolicyRule belongs to.
|
CompliancePolicyRuleSummary.Builder |
compliancePolicyId(String compliancePolicyId)
Unique OCID of the CompliancePolicy.
|
CompliancePolicyRuleSummary.Builder |
copy(CompliancePolicyRuleSummary model) |
CompliancePolicyRuleSummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CompliancePolicyRuleSummary.Builder |
displayName(String displayName)
A user-friendly name.
|
CompliancePolicyRuleSummary.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
CompliancePolicyRuleSummary.Builder |
gracePeriod(String gracePeriod)
Grace period in days,weeks,months or years the exemption is applicable for the rule.
|
CompliancePolicyRuleSummary.Builder |
id(String id)
Unique OCID of the CompliancePolicyRule.
|
CompliancePolicyRuleSummary.Builder |
lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the CompliancePolicyRule in more detail.
|
CompliancePolicyRuleSummary.Builder |
lifecycleState(CompliancePolicyRule.LifecycleState lifecycleState)
The current state of the CompliancePolicyRule.
|
CompliancePolicyRuleSummary.Builder |
patchSelection(PatchSelectionDetails patchSelection) |
CompliancePolicyRuleSummary.Builder |
patchType(List<String> patchType)
PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
|
CompliancePolicyRuleSummary.Builder |
productVersion(ProductVersionDetails productVersion) |
CompliancePolicyRuleSummary.Builder |
severity(List<ComplianceRuleSeverity> severity)
Severity to which this CompliancePolicyRule applies.
|
CompliancePolicyRuleSummary.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.
|
CompliancePolicyRuleSummary.Builder |
timeCreated(Date timeCreated)
The date and time the CompliancePolicyRule was created, in the format defined by RFC
3339.
|
CompliancePolicyRuleSummary.Builder |
timeUpdated(Date timeUpdated)
The date and time the CompliancePolicyRule was updated, in the format defined by RFC
3339.
|
public CompliancePolicyRuleSummary.Builder id(String id)
Unique OCID of the CompliancePolicyRule.
id
- the value to setpublic CompliancePolicyRuleSummary.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
displayName
- the value to setpublic CompliancePolicyRuleSummary.Builder compliancePolicyId(String compliancePolicyId)
Unique OCID of the CompliancePolicy.
compliancePolicyId
- the value to setpublic CompliancePolicyRuleSummary.Builder productVersion(ProductVersionDetails productVersion)
public CompliancePolicyRuleSummary.Builder patchType(List<String> patchType)
PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
patchType
- the value to setpublic CompliancePolicyRuleSummary.Builder severity(List<ComplianceRuleSeverity> severity)
Severity to which this CompliancePolicyRule applies.
severity
- the value to setpublic CompliancePolicyRuleSummary.Builder patchSelection(PatchSelectionDetails patchSelection)
public CompliancePolicyRuleSummary.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.
gracePeriod
- the value to setpublic CompliancePolicyRuleSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment the CompliancePolicyRule belongs to.
compartmentId
- the value to setpublic CompliancePolicyRuleSummary.Builder timeCreated(Date timeCreated)
The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic CompliancePolicyRuleSummary.Builder timeUpdated(Date timeUpdated)
The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
timeUpdated
- the value to setpublic CompliancePolicyRuleSummary.Builder lifecycleState(CompliancePolicyRule.LifecycleState lifecycleState)
The current state of the CompliancePolicyRule.
lifecycleState
- the value to setpublic CompliancePolicyRuleSummary.Builder lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
lifecycleDetails
- the value to setpublic CompliancePolicyRuleSummary.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"}
freeformTags
- the value to setpublic CompliancePolicyRuleSummary.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"}}
definedTags
- the value to setpublic CompliancePolicyRuleSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud": {"free-tier-retained": "true"}}
systemTags
- the value to setpublic CompliancePolicyRuleSummary build()
public CompliancePolicyRuleSummary.Builder copy(CompliancePolicyRuleSummary model)
Copyright © 2016–2024. All rights reserved.