Class TenancyAttachment.Builder
- java.lang.Object
-
- com.oracle.bmc.governancerulescontrolplane.model.TenancyAttachment.Builder
-
- Enclosing class:
- TenancyAttachment
public static class TenancyAttachment.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All 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
-
id
public TenancyAttachment.Builder id(String id)
The Oracle ID (OCID) of the tenancy attachment.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public 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
-
governanceRuleId
public 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
-
tenancyId
public 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
-
lifecycleState
public TenancyAttachment.Builder lifecycleState(TenancyAttachment.LifecycleState lifecycleState)
The current state of the tenancy attachment.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
timeCreated
public 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
-
timeUpdated
public 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
-
timeLastAttempted
public 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
-
build
public TenancyAttachment build()
-
copy
public TenancyAttachment.Builder copy(TenancyAttachment model)
-
-