Class GovernanceRule.Builder
- java.lang.Object
- 
- com.oracle.bmc.governancerulescontrolplane.model.GovernanceRule.Builder
 
- 
- Enclosing class:
- GovernanceRule
 
 public static class GovernanceRule.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description GovernanceRulebuild()GovernanceRule.BuildercompartmentId(String compartmentId)The Oracle ID (OCID) of the root compartment containing the governance rule.GovernanceRule.Buildercopy(GovernanceRule model)GovernanceRule.BuildercreationOption(CreationOption creationOption)The type of option used to create the governance rule, could be one of TEMPLATE or CLONE.GovernanceRule.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.GovernanceRule.Builderdescription(String description)Description of the governance rule.GovernanceRule.BuilderdisplayName(String displayName)Display name of the governance rule.GovernanceRule.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.GovernanceRule.Builderid(String id)The Oracle ID (OCID) of the governance rule.GovernanceRule.BuilderlifecycleState(GovernanceRuleLifecycleState lifecycleState)The current state of the governance rule.GovernanceRule.BuilderrelatedResourceId(String relatedResourceId)The Oracle ID (OCID) of the resource, which was used as a template to create this governance rule.GovernanceRule.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.GovernanceRule.Buildertemplate(Template template)GovernanceRule.BuildertimeCreated(Date timeCreated)Date and time the governance rule was created.GovernanceRule.BuildertimeUpdated(Date timeUpdated)Date and time the governance rule was updated.GovernanceRule.Buildertype(GovernanceRuleType type)Type of the governance rule, can be one of QUOTA, TAG, ALLOWED_REGIONS.
 
- 
- 
- 
Method Detail- 
idpublic GovernanceRule.Builder id(String id) The Oracle ID (OCID) of the governance rule.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic GovernanceRule.Builder compartmentId(String compartmentId) The Oracle ID (OCID) of the root compartment containing the governance rule.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic GovernanceRule.Builder displayName(String displayName) Display name of the governance rule.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic GovernanceRule.Builder description(String description) Description of the governance rule.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
typepublic GovernanceRule.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
 
 - 
creationOptionpublic GovernanceRule.Builder creationOption(CreationOption creationOption) The type of option used to create the governance rule, could be one of TEMPLATE or CLONE.Example: TEMPLATE - Parameters:
- creationOption- the value to set
- Returns:
- this builder
 
 - 
templatepublic GovernanceRule.Builder template(Template template) 
 - 
relatedResourceIdpublic GovernanceRule.Builder relatedResourceId(String relatedResourceId) The Oracle ID (OCID) of the resource, which was used as a template to create this governance rule.- Parameters:
- relatedResourceId- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic GovernanceRule.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 GovernanceRule.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
 
 - 
lifecycleStatepublic GovernanceRule.Builder lifecycleState(GovernanceRuleLifecycleState lifecycleState) The current state of the governance rule.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic GovernanceRule.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
 
 - 
definedTagspublic GovernanceRule.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
 
 - 
systemTagspublic GovernanceRule.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
 
 - 
buildpublic GovernanceRule build() 
 - 
copypublic GovernanceRule.Builder copy(GovernanceRule model) 
 
- 
 
-