public static class SchedulingPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SchedulingPolicy |
build() |
SchedulingPolicy.Builder |
cadence(SchedulingPolicy.Cadence cadence)
The cadence period.
|
SchedulingPolicy.Builder |
cadenceStartMonth(Month cadenceStartMonth)
Start of the month to be followed during the cadence period.
|
SchedulingPolicy.Builder |
compartmentId(String compartmentId)
The OCID of the
compartment.
|
SchedulingPolicy.Builder |
copy(SchedulingPolicy model) |
SchedulingPolicy.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
SchedulingPolicy.Builder |
displayName(String displayName)
The user-friendly name for the Scheduling Policy.
|
SchedulingPolicy.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
SchedulingPolicy.Builder |
id(String id)
The OCID of the
Scheduling Policy.
|
SchedulingPolicy.Builder |
lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.
|
SchedulingPolicy.Builder |
lifecycleState(SchedulingPolicy.LifecycleState lifecycleState)
The current state of the Scheduling Policy.
|
SchedulingPolicy.Builder |
timeCreated(Date timeCreated)
The date and time the Scheduling Policy was created.
|
SchedulingPolicy.Builder |
timeNextWindowStarts(Date timeNextWindowStarts)
The date and time of the next scheduling window associated with the schedulingPolicy is
planned to start.
|
SchedulingPolicy.Builder |
timeUpdated(Date timeUpdated)
The last date and time that the Scheduling Policy was updated.
|
public SchedulingPolicy.Builder id(String id)
The OCID of the Scheduling Policy.
id
- the value to setpublic SchedulingPolicy.Builder compartmentId(String compartmentId)
The OCID of the compartment.
compartmentId
- the value to setpublic SchedulingPolicy.Builder displayName(String displayName)
The user-friendly name for the Scheduling Policy. The name does not need to be unique.
displayName
- the value to setpublic SchedulingPolicy.Builder lifecycleState(SchedulingPolicy.LifecycleState lifecycleState)
The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
lifecycleState
- the value to setpublic SchedulingPolicy.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state.
lifecycleDetails
- the value to setpublic SchedulingPolicy.Builder timeCreated(Date timeCreated)
The date and time the Scheduling Policy was created.
timeCreated
- the value to setpublic SchedulingPolicy.Builder timeUpdated(Date timeUpdated)
The last date and time that the Scheduling Policy was updated.
timeUpdated
- the value to setpublic SchedulingPolicy.Builder cadence(SchedulingPolicy.Cadence cadence)
The cadence period.
cadence
- the value to setpublic SchedulingPolicy.Builder cadenceStartMonth(Month cadenceStartMonth)
Start of the month to be followed during the cadence period.
cadenceStartMonth
- the value to setpublic SchedulingPolicy.Builder timeNextWindowStarts(Date timeNextWindowStarts)
The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
timeNextWindowStarts
- the value to setpublic SchedulingPolicy.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic SchedulingPolicy.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
definedTags
- the value to setpublic SchedulingPolicy build()
public SchedulingPolicy.Builder copy(SchedulingPolicy model)
Copyright © 2016–2024. All rights reserved.