Class OrganizationTenancy.Builder
- java.lang.Object
-
- com.oracle.bmc.tenantmanagercontrolplane.model.OrganizationTenancy.Builder
-
- Enclosing class:
- OrganizationTenancy
public static class OrganizationTenancy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrganizationTenancy
build()
OrganizationTenancy.Builder
copy(OrganizationTenancy model)
OrganizationTenancy.Builder
governanceStatus(GovernanceStatus governanceStatus)
The governance status of the tenancy.OrganizationTenancy.Builder
isApprovedForTransfer(Boolean isApprovedForTransfer)
Parameter to indicate the tenancy is approved for transfer to another organization.OrganizationTenancy.Builder
lifecycleState(OrganizationTenancyLifecycleState lifecycleState)
Lifecycle state of the organization tenancy.OrganizationTenancy.Builder
name(String name)
Name of the tenancy.OrganizationTenancy.Builder
role(OrganizationTenancyRole role)
Role of the organization tenancy.OrganizationTenancy.Builder
tenancyId(String tenancyId)
OCID of the tenancy.OrganizationTenancy.Builder
timeJoined(Date timeJoined)
Date and time when the tenancy joined the organization.OrganizationTenancy.Builder
timeLeft(Date timeLeft)
Date and time when the tenancy left the organization.
-
-
-
Method Detail
-
tenancyId
public OrganizationTenancy.Builder tenancyId(String tenancyId)
OCID of the tenancy.- Parameters:
tenancyId
- the value to set- Returns:
- this builder
-
name
public OrganizationTenancy.Builder name(String name)
Name of the tenancy.- Parameters:
name
- the value to set- Returns:
- this builder
-
lifecycleState
public OrganizationTenancy.Builder lifecycleState(OrganizationTenancyLifecycleState lifecycleState)
Lifecycle state of the organization tenancy.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
role
public OrganizationTenancy.Builder role(OrganizationTenancyRole role)
Role of the organization tenancy.- Parameters:
role
- the value to set- Returns:
- this builder
-
timeJoined
public OrganizationTenancy.Builder timeJoined(Date timeJoined)
Date and time when the tenancy joined the organization.- Parameters:
timeJoined
- the value to set- Returns:
- this builder
-
timeLeft
public OrganizationTenancy.Builder timeLeft(Date timeLeft)
Date and time when the tenancy left the organization.- Parameters:
timeLeft
- the value to set- Returns:
- this builder
-
isApprovedForTransfer
public OrganizationTenancy.Builder isApprovedForTransfer(Boolean isApprovedForTransfer)
Parameter to indicate the tenancy is approved for transfer to another organization.- Parameters:
isApprovedForTransfer
- the value to set- Returns:
- this builder
-
governanceStatus
public OrganizationTenancy.Builder governanceStatus(GovernanceStatus governanceStatus)
The governance status of the tenancy.- Parameters:
governanceStatus
- the value to set- Returns:
- this builder
-
build
public OrganizationTenancy build()
-
copy
public OrganizationTenancy.Builder copy(OrganizationTenancy model)
-
-