Class PatchSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.PatchSummary.Builder
-
- Enclosing class:
- PatchSummary
public static class PatchSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchSummary.Builder
artifactDetails(ArtifactDetails artifactDetails)
PatchSummary
build()
PatchSummary.Builder
compartmentId(String compartmentId)
OCID of the compartment to which the resource belongs to.PatchSummary.Builder
copy(PatchSummary model)
PatchSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.PatchSummary.Builder
description(String description)
A user-friendly description.PatchSummary.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.PatchSummary.Builder
id(String id)
The OCID of the resource.PatchSummary.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.PatchSummary.Builder
lifecycleState(Patch.LifecycleState lifecycleState)
The current state of the Patch.PatchSummary.Builder
name(String name)
A user-friendly name.PatchSummary.Builder
patchType(PatchType patchType)
PatchSummary.Builder
product(PatchProduct product)
PatchSummary.Builder
resourceRegion(String resourceRegion)
Associated regionPatchSummary.Builder
severity(PatchSeverity severity)
Patch Severity.PatchSummary.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.PatchSummary.Builder
timeCreated(Date timeCreated)
The time this resource was created.PatchSummary.Builder
timeReleased(Date timeReleased)
Date when the patch was released.PatchSummary.Builder
timeUpdated(Date timeUpdated)
The time this resource was last updated.PatchSummary.Builder
type(Patch.Type type)
Provide information on who defined the patch.
-
-
-
Method Detail
-
id
public PatchSummary.Builder id(String id)
The OCID of the resource.- Parameters:
id
- the value to set- Returns:
- this builder
-
name
public PatchSummary.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 PatchSummary.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 PatchSummary.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 PatchSummary.Builder patchType(PatchType patchType)
-
severity
public PatchSummary.Builder severity(PatchSeverity severity)
Patch Severity.- Parameters:
severity
- the value to set- Returns:
- this builder
-
timeReleased
public PatchSummary.Builder timeReleased(Date timeReleased)
Date when the patch was released.- Parameters:
timeReleased
- the value to set- Returns:
- this builder
-
artifactDetails
public PatchSummary.Builder artifactDetails(ArtifactDetails artifactDetails)
-
product
public PatchSummary.Builder product(PatchProduct product)
-
compartmentId
public PatchSummary.Builder compartmentId(String compartmentId)
OCID of the compartment to which the resource belongs to.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
lifecycleState
public PatchSummary.Builder lifecycleState(Patch.LifecycleState lifecycleState)
The current state of the Patch.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public PatchSummary.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
-
timeCreated
public PatchSummary.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 PatchSummary.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
-
resourceRegion
public PatchSummary.Builder resourceRegion(String resourceRegion)
Associated region- Parameters:
resourceRegion
- the value to set- Returns:
- this builder
-
freeformTags
public PatchSummary.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 PatchSummary.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 PatchSummary.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 PatchSummary build()
-
copy
public PatchSummary.Builder copy(PatchSummary model)
-
-