Class CccUpgradeSchedule.Builder
- java.lang.Object
-
- com.oracle.bmc.computecloudatcustomer.model.CccUpgradeSchedule.Builder
-
- Enclosing class:
- CccUpgradeSchedule
public static class CccUpgradeSchedule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CccUpgradeSchedule
build()
CccUpgradeSchedule.Builder
compartmentId(String compartmentId)
Compartment OCID for the Compute Cloud@Customer upgrade schedule.CccUpgradeSchedule.Builder
copy(CccUpgradeSchedule model)
CccUpgradeSchedule.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CccUpgradeSchedule.Builder
description(String description)
An optional description of the Compute Cloud@Customer upgrade schedule.CccUpgradeSchedule.Builder
displayName(String displayName)
Compute Cloud@Customer upgrade schedule display name.CccUpgradeSchedule.Builder
events(List<CccScheduleEvent> events)
List of preferred times for Compute Cloud@Customer infrastructures associated with this schedule to be upgraded.CccUpgradeSchedule.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.CccUpgradeSchedule.Builder
id(String id)
Upgrade schedule OCID.CccUpgradeSchedule.Builder
infrastructureIds(List<String> infrastructureIds)
List of Compute Cloud@Customer infrastructure OCIDs that are using this upgrade schedule.CccUpgradeSchedule.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.CccUpgradeSchedule.Builder
lifecycleState(CccUpgradeSchedule.LifecycleState lifecycleState)
Lifecycle state of the resource.CccUpgradeSchedule.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.CccUpgradeSchedule.Builder
timeCreated(Date timeCreated)
The time the upgrade schedule was created, using an RFC3339 formatted datetime string.CccUpgradeSchedule.Builder
timeUpdated(Date timeUpdated)
The time the upgrade schedule was updated, using an RFC3339 formatted datetime string.
-
-
-
Method Detail
-
id
public CccUpgradeSchedule.Builder id(String id)
Upgrade schedule OCID.This cannot be changed once created.
- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public CccUpgradeSchedule.Builder displayName(String displayName)
Compute Cloud@Customer upgrade schedule display name.Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public CccUpgradeSchedule.Builder description(String description)
An optional description of the Compute Cloud@Customer upgrade schedule.Avoid entering confidential information.
- Parameters:
description
- the value to set- Returns:
- this builder
-
compartmentId
public CccUpgradeSchedule.Builder compartmentId(String compartmentId)
Compartment OCID for the Compute Cloud@Customer upgrade schedule.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public CccUpgradeSchedule.Builder timeCreated(Date timeCreated)
The time the upgrade schedule was created, using an RFC3339 formatted datetime string.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public CccUpgradeSchedule.Builder timeUpdated(Date timeUpdated)
The time the upgrade schedule was updated, using an RFC3339 formatted datetime string.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public CccUpgradeSchedule.Builder lifecycleState(CccUpgradeSchedule.LifecycleState lifecycleState)
Lifecycle state of the resource.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public CccUpgradeSchedule.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, the message can be used to provide actionable information for a resource in a Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
events
public CccUpgradeSchedule.Builder events(List<CccScheduleEvent> events)
List of preferred times for Compute Cloud@Customer infrastructures associated with this schedule to be upgraded.- Parameters:
events
- the value to set- Returns:
- this builder
-
infrastructureIds
public CccUpgradeSchedule.Builder infrastructureIds(List<String> infrastructureIds)
List of Compute Cloud@Customer infrastructure OCIDs that are using this upgrade schedule.- Parameters:
infrastructureIds
- the value to set- Returns:
- this builder
-
freeformTags
public CccUpgradeSchedule.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public CccUpgradeSchedule.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public CccUpgradeSchedule.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public CccUpgradeSchedule build()
-
copy
public CccUpgradeSchedule.Builder copy(CccUpgradeSchedule model)
-
-