Class CompliancePolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.CompliancePolicy.Builder
-
- Enclosing class:
- CompliancePolicy
public static class CompliancePolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompliancePolicy
build()
CompliancePolicy.Builder
compartmentId(String compartmentId)
The OCID of the compartment the CompliancePolicy belongs to.CompliancePolicy.Builder
copy(CompliancePolicy model)
CompliancePolicy.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CompliancePolicy.Builder
displayName(String displayName)
Display name for the CompliancePolicy.CompliancePolicy.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.CompliancePolicy.Builder
id(String id)
The OCID of the CompliancePolicy.CompliancePolicy.Builder
lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the CompliancePolicy in more detail.CompliancePolicy.Builder
lifecycleState(CompliancePolicy.LifecycleState lifecycleState)
The current state of the CompliancePolicy.CompliancePolicy.Builder
productId(String productId)
platformConfiguration OCID corresponding to the Product.CompliancePolicy.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.CompliancePolicy.Builder
timeCreated(Date timeCreated)
The date and time the CompliancePolicy was created, in the format defined by RFC 3339.CompliancePolicy.Builder
timeUpdated(Date timeUpdated)
The date and time the CompliancePolicy was updated, in the format defined by RFC 3339.
-
-
-
Method Detail
-
id
public CompliancePolicy.Builder id(String id)
The OCID of the CompliancePolicy.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public CompliancePolicy.Builder displayName(String displayName)
Display name for the CompliancePolicy.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
productId
public CompliancePolicy.Builder productId(String productId)
platformConfiguration OCID corresponding to the Product.- Parameters:
productId
- the value to set- Returns:
- this builder
-
compartmentId
public CompliancePolicy.Builder compartmentId(String compartmentId)
The OCID of the compartment the CompliancePolicy belongs to.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public CompliancePolicy.Builder timeCreated(Date timeCreated)
The date and time the CompliancePolicy 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 CompliancePolicy.Builder timeUpdated(Date timeUpdated)
The date and time the CompliancePolicy 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 CompliancePolicy.Builder lifecycleState(CompliancePolicy.LifecycleState lifecycleState)
The current state of the CompliancePolicy.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public CompliancePolicy.Builder lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the CompliancePolicy in more detail.For example, can be used to provide actionable information for a resource in the Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public CompliancePolicy.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 CompliancePolicy.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 CompliancePolicy.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 CompliancePolicy build()
-
copy
public CompliancePolicy.Builder copy(CompliancePolicy model)
-
-