Class Runbook.Builder
- java.lang.Object
-
- com.oracle.bmc.fleetappsmanagement.model.Runbook.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Runbookbuild()Runbook.BuildercompartmentId(String compartmentId)OCID of the compartment to which the resource belongs to.Runbook.Buildercopy(Runbook model)Runbook.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Runbook.Builderdescription(String description)A user-friendly description.Runbook.BuilderdisplayName(String displayName)A user-friendly name.Runbook.BuilderestimatedTime(String estimatedTime)Estimated time to successfully complete the runbook execution.Runbook.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.Runbook.BuilderhasDraftVersion(Boolean hasDraftVersion)Does this runbook has draft versions?Runbook.Builderid(String id)The OCID of the resource.Runbook.BuilderisDefault(Boolean isDefault)Is the runbook default? Sets this runbook as the default for the chosen product/product stack for the specified lifecycle operation.Runbook.BuilderisSudoAccessNeeded(Boolean isSudoAccessNeeded)Does this runbook need SUDO access to execute?Runbook.BuilderlatestVersion(String latestVersion)Latest runbook versionRunbook.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.Runbook.BuilderlifecycleState(Runbook.LifecycleState lifecycleState)The current state of the runbook.Runbook.Builderoperation(String operation)The lifecycle operation performed by the runbook.Runbook.BuilderosType(OsType osType)The OS type for the runbook.Runbook.Builderplatform(String platform)The platform of the runbook.Runbook.BuilderresourceRegion(String resourceRegion)Associated regionRunbook.BuilderrunbookVersion(Version runbookVersion)Runbook.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.Runbook.BuildertimeCreated(Date timeCreated)The time this resource was created.Runbook.BuildertimeUpdated(Date timeUpdated)The time this resource was last updated.Runbook.Buildertype(Runbook.Type type)The type of the runbook.
-
-
-
Method Detail
-
id
public Runbook.Builder id(String id)
The OCID of the resource.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public Runbook.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Example: My new resource
- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public Runbook.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 Runbook.Builder type(Runbook.Type type)
The type of the runbook.- Parameters:
type- the value to set- Returns:
- this builder
-
operation
public Runbook.Builder operation(String operation)
The lifecycle operation performed by the runbook.- Parameters:
operation- the value to set- Returns:
- this builder
-
osType
public Runbook.Builder osType(OsType osType)
The OS type for the runbook.- Parameters:
osType- the value to set- Returns:
- this builder
-
platform
public Runbook.Builder platform(String platform)
The platform of the runbook.- Parameters:
platform- the value to set- Returns:
- this builder
-
isDefault
public Runbook.Builder isDefault(Boolean isDefault)
Is the runbook default? Sets this runbook as the default for the chosen product/product stack for the specified lifecycle operation.- Parameters:
isDefault- the value to set- Returns:
- this builder
-
isSudoAccessNeeded
public Runbook.Builder isSudoAccessNeeded(Boolean isSudoAccessNeeded)
Does this runbook need SUDO access to execute?- Parameters:
isSudoAccessNeeded- the value to set- Returns:
- this builder
-
estimatedTime
public Runbook.Builder estimatedTime(String estimatedTime)
Estimated time to successfully complete the runbook execution.- Parameters:
estimatedTime- the value to set- Returns:
- this builder
-
latestVersion
public Runbook.Builder latestVersion(String latestVersion)
Latest runbook version- Parameters:
latestVersion- the value to set- Returns:
- this builder
-
hasDraftVersion
public Runbook.Builder hasDraftVersion(Boolean hasDraftVersion)
Does this runbook has draft versions?- Parameters:
hasDraftVersion- the value to set- Returns:
- this builder
-
lifecycleState
public Runbook.Builder lifecycleState(Runbook.LifecycleState lifecycleState)
The current state of the runbook.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public Runbook.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 Runbook.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 Runbook.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
-
runbookVersion
public Runbook.Builder runbookVersion(Version runbookVersion)
-
compartmentId
public Runbook.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 Runbook.Builder resourceRegion(String resourceRegion)
Associated region- Parameters:
resourceRegion- the value to set- Returns:
- this builder
-
freeformTags
public Runbook.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 Runbook.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 Runbook.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 Runbook build()
-
copy
public Runbook.Builder copy(Runbook model)
-
-