Class EnforcedGovernanceRule.Builder
- java.lang.Object
-
- com.oracle.bmc.governancerulescontrolplane.model.EnforcedGovernanceRule.Builder
-
- Enclosing class:
- EnforcedGovernanceRule
public static class EnforcedGovernanceRule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnforcedGovernanceRule
build()
EnforcedGovernanceRule.Builder
compartmentId(String compartmentId)
The Oracle ID (OCID) of the child’s root compartment to which the governance rule is attached.EnforcedGovernanceRule.Builder
copy(EnforcedGovernanceRule model)
EnforcedGovernanceRule.Builder
governanceRuleDisplayName(String governanceRuleDisplayName)
Display name of the governance rule.EnforcedGovernanceRule.Builder
id(String id)
The Oracle ID (OCID) of the enforced governance rule.EnforcedGovernanceRule.Builder
lifecycleState(GovernanceRuleLifecycleState lifecycleState)
The current state of the governance rule.EnforcedGovernanceRule.Builder
template(Template template)
EnforcedGovernanceRule.Builder
timeCreated(Date timeCreated)
Date and time the governance rule was created.EnforcedGovernanceRule.Builder
timeUpdated(Date timeUpdated)
Date and time the governance rule was updated.EnforcedGovernanceRule.Builder
type(GovernanceRuleType type)
Type of the governance rule, can be one of QUOTA, TAG, ALLOWED_REGIONS.
-
-
-
Method Detail
-
id
public EnforcedGovernanceRule.Builder id(String id)
The Oracle ID (OCID) of the enforced governance rule.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public EnforcedGovernanceRule.Builder compartmentId(String compartmentId)
The Oracle ID (OCID) of the child’s root compartment to which the governance rule is attached.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
governanceRuleDisplayName
public EnforcedGovernanceRule.Builder governanceRuleDisplayName(String governanceRuleDisplayName)
Display name of the governance rule.- Parameters:
governanceRuleDisplayName
- the value to set- Returns:
- this builder
-
type
public EnforcedGovernanceRule.Builder type(GovernanceRuleType type)
Type of the governance rule, can be one of QUOTA, TAG, ALLOWED_REGIONS.Example: QUOTA
- Parameters:
type
- the value to set- Returns:
- this builder
-
template
public EnforcedGovernanceRule.Builder template(Template template)
-
lifecycleState
public EnforcedGovernanceRule.Builder lifecycleState(GovernanceRuleLifecycleState lifecycleState)
The current state of the governance rule.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public EnforcedGovernanceRule.Builder timeCreated(Date timeCreated)
Date and time the governance rule was created.An RFC3339 formatted datetime string.
Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public EnforcedGovernanceRule.Builder timeUpdated(Date timeUpdated)
Date and time the governance rule was updated.An RFC3339 formatted datetime string.
Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
build
public EnforcedGovernanceRule build()
-
copy
public EnforcedGovernanceRule.Builder copy(EnforcedGovernanceRule model)
-
-