Class EnforcedGovernanceRule.Builder
- java.lang.Object
- 
- com.oracle.bmc.governancerulescontrolplane.model.EnforcedGovernanceRule.Builder
 
- 
- Enclosing class:
- EnforcedGovernanceRule
 
 public static class EnforcedGovernanceRule.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description EnforcedGovernanceRulebuild()EnforcedGovernanceRule.BuildercompartmentId(String compartmentId)The Oracle ID (OCID) of the child’s root compartment to which the governance rule is attached.EnforcedGovernanceRule.Buildercopy(EnforcedGovernanceRule model)EnforcedGovernanceRule.BuildergovernanceRuleDisplayName(String governanceRuleDisplayName)Display name of the governance rule.EnforcedGovernanceRule.Builderid(String id)The Oracle ID (OCID) of the enforced governance rule.EnforcedGovernanceRule.BuilderlifecycleState(GovernanceRuleLifecycleState lifecycleState)The current state of the governance rule.EnforcedGovernanceRule.Buildertemplate(Template template)EnforcedGovernanceRule.BuildertimeCreated(Date timeCreated)Date and time the governance rule was created.EnforcedGovernanceRule.BuildertimeUpdated(Date timeUpdated)Date and time the governance rule was updated.EnforcedGovernanceRule.Buildertype(GovernanceRuleType type)Type of the governance rule, can be one of QUOTA, TAG, ALLOWED_REGIONS.
 
- 
- 
- 
Method Detail- 
idpublic EnforcedGovernanceRule.Builder id(String id) The Oracle ID (OCID) of the enforced governance rule.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic 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
 
 - 
governanceRuleDisplayNamepublic EnforcedGovernanceRule.Builder governanceRuleDisplayName(String governanceRuleDisplayName) Display name of the governance rule.- Parameters:
- governanceRuleDisplayName- the value to set
- Returns:
- this builder
 
 - 
typepublic 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
 
 - 
templatepublic EnforcedGovernanceRule.Builder template(Template template) 
 - 
lifecycleStatepublic EnforcedGovernanceRule.Builder lifecycleState(GovernanceRuleLifecycleState lifecycleState) The current state of the governance rule.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic 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
 
 - 
timeUpdatedpublic 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
 
 - 
buildpublic EnforcedGovernanceRule build() 
 - 
copypublic EnforcedGovernanceRule.Builder copy(EnforcedGovernanceRule model) 
 
- 
 
-