Class TenancyAttachment.Builder
- java.lang.Object
- 
- com.oracle.bmc.governancerulescontrolplane.model.TenancyAttachment.Builder
 
- 
- Enclosing class:
- TenancyAttachment
 
 public static class TenancyAttachment.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TenancyAttachmentbuild()TenancyAttachment.BuildercompartmentId(String compartmentId)The Oracle ID (OCID) of the root compartment containing the tenancy attachment.TenancyAttachment.Buildercopy(TenancyAttachment model)TenancyAttachment.BuildergovernanceRuleId(String governanceRuleId)The Oracle ID (OCID) of the governance rule.TenancyAttachment.Builderid(String id)The Oracle ID (OCID) of the tenancy attachment.TenancyAttachment.BuilderlifecycleState(TenancyAttachment.LifecycleState lifecycleState)The current state of the tenancy attachment.TenancyAttachment.BuildertenancyId(String tenancyId)The Oracle ID (OCID) of the tenancy to which the governance rule is attached.TenancyAttachment.BuildertimeCreated(Date timeCreated)Date and time the tenancy attachment was created.TenancyAttachment.BuildertimeLastAttempted(Date timeLastAttempted)Date and time the tenancy attachment was last attempted.TenancyAttachment.BuildertimeUpdated(Date timeUpdated)Date and time the tenancy attachment was updated.
 
- 
- 
- 
Method Detail- 
idpublic TenancyAttachment.Builder id(String id) The Oracle ID (OCID) of the tenancy attachment.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic TenancyAttachment.Builder compartmentId(String compartmentId) The Oracle ID (OCID) of the root compartment containing the tenancy attachment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
governanceRuleIdpublic TenancyAttachment.Builder governanceRuleId(String governanceRuleId) The Oracle ID (OCID) of the governance rule.Every tenancy attachment is associated with a governance rule. - Parameters:
- governanceRuleId- the value to set
- Returns:
- this builder
 
 - 
tenancyIdpublic TenancyAttachment.Builder tenancyId(String tenancyId) The Oracle ID (OCID) of the tenancy to which the governance rule is attached.- Parameters:
- tenancyId- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic TenancyAttachment.Builder lifecycleState(TenancyAttachment.LifecycleState lifecycleState) The current state of the tenancy attachment.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic TenancyAttachment.Builder timeCreated(Date timeCreated) Date and time the tenancy attachment was created.An RFC3339 formatted datetime string. Example: 2016-08-25T21:10:29.600Z - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic TenancyAttachment.Builder timeUpdated(Date timeUpdated) Date and time the tenancy attachment was updated.An RFC3339 formatted datetime string. Example: 2016-08-25T21:10:29.600Z - Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
timeLastAttemptedpublic TenancyAttachment.Builder timeLastAttempted(Date timeLastAttempted) Date and time the tenancy attachment was last attempted.An RFC3339 formatted datetime string. Example: 2016-08-25T21:10:29.600Z - Parameters:
- timeLastAttempted- the value to set
- Returns:
- this builder
 
 - 
buildpublic TenancyAttachment build() 
 - 
copypublic TenancyAttachment.Builder copy(TenancyAttachment model) 
 
- 
 
-