Package com.oracle.bmc.optimizer.model
Class EnrollmentStatus.Builder
- java.lang.Object
-
- com.oracle.bmc.optimizer.model.EnrollmentStatus.Builder
-
- Enclosing class:
- EnrollmentStatus
public static class EnrollmentStatus.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnrollmentStatus
build()
EnrollmentStatus.Builder
compartmentId(String compartmentId)
The OCID of the compartment.EnrollmentStatus.Builder
copy(EnrollmentStatus model)
EnrollmentStatus.Builder
id(String id)
The OCID of the enrollment status.EnrollmentStatus.Builder
lifecycleState(LifecycleState lifecycleState)
The enrollment status’ current state.EnrollmentStatus.Builder
status(OptimizerEnrollmentStatus status)
The current Cloud Advisor enrollment status.EnrollmentStatus.Builder
statusReason(String statusReason)
The reason for the enrollment status of the tenancy.EnrollmentStatus.Builder
timeCreated(Date timeCreated)
The date and time the enrollment status was created, in the format defined by RFC3339.EnrollmentStatus.Builder
timeUpdated(Date timeUpdated)
The date and time the enrollment status was last updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public EnrollmentStatus.Builder id(String id)
The OCID of the enrollment status.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public EnrollmentStatus.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
lifecycleState
public EnrollmentStatus.Builder lifecycleState(LifecycleState lifecycleState)
The enrollment status’ current state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
status
public EnrollmentStatus.Builder status(OptimizerEnrollmentStatus status)
The current Cloud Advisor enrollment status.- Parameters:
status
- the value to set- Returns:
- this builder
-
statusReason
public EnrollmentStatus.Builder statusReason(String statusReason)
The reason for the enrollment status of the tenancy.- Parameters:
statusReason
- the value to set- Returns:
- this builder
-
timeCreated
public EnrollmentStatus.Builder timeCreated(Date timeCreated)
The date and time the enrollment status was created, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public EnrollmentStatus.Builder timeUpdated(Date timeUpdated)
The date and time the enrollment status was last updated, in the format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
build
public EnrollmentStatus build()
-
copy
public EnrollmentStatus.Builder copy(EnrollmentStatus model)
-
-