Class Patch.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.Patch.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Patch.Builder
artifactDetails(ArtifactDetails artifactDetails)
Patch
build()
Patch.Builder
compartmentId(String compartmentId)
OCID of the compartment to which the resource belongs to.Patch.Builder
copy(Patch model)
Patch.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Patch.Builder
dependentPatches(List<DependentPatchDetails> dependentPatches)
Dependent Patches for this patch.Patch.Builder
description(String description)
A user-friendly description.Patch.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Patch.Builder
id(String id)
The OCID of the resource.Patch.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.Patch.Builder
lifecycleState(Patch.LifecycleState lifecycleState)
The current state of the Patch.Patch.Builder
name(String name)
A user-friendly name.Patch.Builder
patchType(PatchType patchType)
Patch.Builder
product(PatchProduct product)
Patch.Builder
resourceRegion(String resourceRegion)
Associated regionPatch.Builder
severity(PatchSeverity severity)
Patch Severity.Patch.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Patch.Builder
timeCreated(Date timeCreated)
The time this resource was created.Patch.Builder
timeReleased(Date timeReleased)
Date when the patch was released.Patch.Builder
timeUpdated(Date timeUpdated)
The time this resource was last updated.Patch.Builder
type(Patch.Type type)
Provide information on who defined the patch.
-
-
-
Method Detail
-
id
public Patch.Builder id(String id)
The OCID of the resource.- Parameters:
id
- the value to set- Returns:
- this builder
-
name
public Patch.Builder name(String name)
A user-friendly name.Should be unique within the tenancy, and cannot be changed after creation. Avoid entering confidential information.
- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public Patch.Builder description(String description)
A user-friendly description.To provide some insight about the resource. Avoid entering confidential information.
- Parameters:
description
- the value to set- Returns:
- this builder
-
type
public Patch.Builder type(Patch.Type type)
Provide information on who defined the patch.Example: For Custom Patches the value will be USER_DEFINED For Oracle Defined Patches the value will be ORACLE_DEFINED
- Parameters:
type
- the value to set- Returns:
- this builder
-
patchType
public Patch.Builder patchType(PatchType patchType)
-
severity
public Patch.Builder severity(PatchSeverity severity)
Patch Severity.- Parameters:
severity
- the value to set- Returns:
- this builder
-
timeReleased
public Patch.Builder timeReleased(Date timeReleased)
Date when the patch was released.- Parameters:
timeReleased
- the value to set- Returns:
- this builder
-
artifactDetails
public Patch.Builder artifactDetails(ArtifactDetails artifactDetails)
-
product
public Patch.Builder product(PatchProduct product)
-
dependentPatches
public Patch.Builder dependentPatches(List<DependentPatchDetails> dependentPatches)
Dependent Patches for this patch.- Parameters:
dependentPatches
- the value to set- Returns:
- this builder
-
lifecycleState
public Patch.Builder lifecycleState(Patch.LifecycleState lifecycleState)
The current state of the Patch.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public Patch.Builder timeCreated(Date timeCreated)
The time this resource was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Patch.Builder timeUpdated(Date timeUpdated)
The time this resource was last updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleDetails
public Patch.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
compartmentId
public Patch.Builder compartmentId(String compartmentId)
OCID of the compartment to which the resource belongs to.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
resourceRegion
public Patch.Builder resourceRegion(String resourceRegion)
Associated region- Parameters:
resourceRegion
- the value to set- Returns:
- this builder
-
freeformTags
public Patch.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 Patch.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 Patch.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 Patch build()
-
copy
public Patch.Builder copy(Patch model)
-
-