Class MaintenanceWindow.Builder
- java.lang.Object
-
- com.oracle.bmc.stackmonitoring.model.MaintenanceWindow.Builder
-
- Enclosing class:
- MaintenanceWindow
public static class MaintenanceWindow.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaintenanceWindowbuild()MaintenanceWindow.BuildercompartmentId(String compartmentId)Compartment Identifier OCID.MaintenanceWindow.Buildercopy(MaintenanceWindow model)MaintenanceWindow.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.MaintenanceWindow.Builderdescription(String description)Maintenance Window description.MaintenanceWindow.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.MaintenanceWindow.Builderid(String id)The OCID of maintenance window.MaintenanceWindow.BuilderlifecycleDetails(MaintenanceWindowLifecycleDetails lifecycleDetails)Lifecycle Details of the Maintenance Window.MaintenanceWindow.BuilderlifecycleState(MaintenanceWindowLifecycleState lifecycleState)Lifecycle state of the monitored resource.MaintenanceWindow.Buildername(String name)Maintenance Window name.MaintenanceWindow.Builderresources(List<CreateMaintenanceWindowResourceDetails> resources)List of resource Ids which are part of the Maintenance WindowMaintenanceWindow.BuilderresourcesDetails(List<MonitoredResourceDetails> resourcesDetails)List of resource details that are part of the Maintenance Window.MaintenanceWindow.Builderschedule(MaintenanceWindowSchedule schedule)MaintenanceWindow.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.MaintenanceWindow.BuildertimeCreated(Date timeCreated)The time the the maintenance window was created.MaintenanceWindow.BuildertimeUpdated(Date timeUpdated)The time the the mainteance window was updated.
-
-
-
Method Detail
-
id
public MaintenanceWindow.Builder id(String id)
The OCID of maintenance window.- Parameters:
id- the value to set- Returns:
- this builder
-
name
public MaintenanceWindow.Builder name(String name)
Maintenance Window name.- Parameters:
name- the value to set- Returns:
- this builder
-
description
public MaintenanceWindow.Builder description(String description)
Maintenance Window description.- Parameters:
description- the value to set- Returns:
- this builder
-
compartmentId
public MaintenanceWindow.Builder compartmentId(String compartmentId)
Compartment Identifier OCID.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
resources
public MaintenanceWindow.Builder resources(List<CreateMaintenanceWindowResourceDetails> resources)
List of resource Ids which are part of the Maintenance Window- Parameters:
resources- the value to set- Returns:
- this builder
-
resourcesDetails
public MaintenanceWindow.Builder resourcesDetails(List<MonitoredResourceDetails> resourcesDetails)
List of resource details that are part of the Maintenance Window.- Parameters:
resourcesDetails- the value to set- Returns:
- this builder
-
lifecycleState
public MaintenanceWindow.Builder lifecycleState(MaintenanceWindowLifecycleState lifecycleState)
Lifecycle state of the monitored resource.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public MaintenanceWindow.Builder lifecycleDetails(MaintenanceWindowLifecycleDetails lifecycleDetails)
Lifecycle Details of the Maintenance Window.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
schedule
public MaintenanceWindow.Builder schedule(MaintenanceWindowSchedule schedule)
-
timeCreated
public MaintenanceWindow.Builder timeCreated(Date timeCreated)
The time the the maintenance window was created.An RFC3339 formatted datetime string
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public MaintenanceWindow.Builder timeUpdated(Date timeUpdated)
The time the the mainteance window was updated.An RFC3339 formatted datetime string
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
freeformTags
public MaintenanceWindow.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 MaintenanceWindow.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 MaintenanceWindow.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public MaintenanceWindow build()
-
copy
public MaintenanceWindow.Builder copy(MaintenanceWindow model)
-
-