Class ComplianceRecord.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.ComplianceRecord.Builder
-
- Enclosing class:
- ComplianceRecord
public static class ComplianceRecord.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplianceRecordbuild()ComplianceRecord.BuildercompartmentId(String compartmentId)The OCID of the compartment.ComplianceRecord.BuildercomplianceState(ComplianceState complianceState)Last known compliance state of target.ComplianceRecord.Buildercopy(ComplianceRecord model)ComplianceRecord.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ComplianceRecord.BuilderentityDisplayName(String entityDisplayName)The displayName of the entity for which the compliance is calculated.Ex.DisplayName for the FleetComplianceRecord.BuilderentityId(String entityId)The OCID of the entity for which the compliance is calculated.Ex.FleetIdComplianceRecord.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.ComplianceRecord.Builderid(String id)The OCID of the ComplianceRecord.ComplianceRecord.BuilderlifecycleState(ComplianceRecord.LifecycleState lifecycleState)The current state of the ComplianceRecord.ComplianceRecord.Builderpatch(CompliancePatchDetail patch)ComplianceRecord.Builderpolicy(ComplianceDetailPolicy policy)ComplianceRecord.Builderresource(ComplianceDetailResource resource)ComplianceRecord.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.ComplianceRecord.Buildertarget(ComplianceDetailTarget target)ComplianceRecord.BuildertimeCreated(Date timeCreated)The date and time the ComplianceRecord was created, in the format defined by RFC 3339.ComplianceRecord.BuildertimeUpdated(Date timeUpdated)The date and time the ComplianceRecord was updated, in the format defined by RFC 3339.
-
-
-
Method Detail
-
id
public ComplianceRecord.Builder id(String id)
The OCID of the ComplianceRecord.- Parameters:
id- the value to set- Returns:
- this builder
-
entityId
public ComplianceRecord.Builder entityId(String entityId)
The OCID of the entity for which the compliance is calculated.Ex.FleetId- Parameters:
entityId- the value to set- Returns:
- this builder
-
entityDisplayName
public ComplianceRecord.Builder entityDisplayName(String entityDisplayName)
The displayName of the entity for which the compliance is calculated.Ex.DisplayName for the Fleet- Parameters:
entityDisplayName- the value to set- Returns:
- this builder
-
compartmentId
public ComplianceRecord.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
policy
public ComplianceRecord.Builder policy(ComplianceDetailPolicy policy)
-
resource
public ComplianceRecord.Builder resource(ComplianceDetailResource resource)
-
target
public ComplianceRecord.Builder target(ComplianceDetailTarget target)
-
patch
public ComplianceRecord.Builder patch(CompliancePatchDetail patch)
-
complianceState
public ComplianceRecord.Builder complianceState(ComplianceState complianceState)
Last known compliance state of target.- Parameters:
complianceState- the value to set- Returns:
- this builder
-
timeCreated
public ComplianceRecord.Builder timeCreated(Date timeCreated)
The date and time the ComplianceRecord was created, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public ComplianceRecord.Builder timeUpdated(Date timeUpdated)
The date and time the ComplianceRecord was updated, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public ComplianceRecord.Builder lifecycleState(ComplianceRecord.LifecycleState lifecycleState)
The current state of the ComplianceRecord.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
freeformTags
public ComplianceRecord.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 ComplianceRecord.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
-
systemTags
public ComplianceRecord.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”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public ComplianceRecord build()
-
copy
public ComplianceRecord.Builder copy(ComplianceRecord model)
-
-