Class Template.Builder
- java.lang.Object
-
- com.oracle.bmc.resourcemanager.model.Template.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Template
build()
Template.Builder
categoryId(String categoryId)
Unique identifier for the category where the template is located.Template.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing this template.Template.Builder
copy(Template model)
Template.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Template.Builder
description(String description)
Brief description of the template.Template.Builder
displayName(String displayName)
Human-readable name of the template.Template.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags associated with the resource.Template.Builder
id(String id)
Unique identifier (OCID) for the template.Template.Builder
isFreeTier(Boolean isFreeTier)
whether the template will work for free tier tenancy.Template.Builder
lifecycleState(Template.LifecycleState lifecycleState)
The current lifecycle state of the template.Template.Builder
longDescription(String longDescription)
Detailed description of the template.Template.Builder
templateConfigSource(TemplateConfigSource templateConfigSource)
Template.Builder
timeCreated(Date timeCreated)
The date and time at which the template was created.
-
-
-
Method Detail
-
id
public Template.Builder id(String id)
Unique identifier (OCID) for the template.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public Template.Builder compartmentId(String compartmentId)
The OCID of the compartment containing this template.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
categoryId
public Template.Builder categoryId(String categoryId)
Unique identifier for the category where the template is located.Possible values are 0 (Quick Starts), 1 (Service), 2 (Architecture), and 3 (Private).
- Parameters:
categoryId
- the value to set- Returns:
- this builder
-
displayName
public Template.Builder displayName(String displayName)
Human-readable name of the template.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public Template.Builder description(String description)
Brief description of the template.- Parameters:
description
- the value to set- Returns:
- this builder
-
longDescription
public Template.Builder longDescription(String longDescription)
Detailed description of the template.This description is displayed in the Console page listing templates when the template is expanded. Avoid entering confidential information.
- Parameters:
longDescription
- the value to set- Returns:
- this builder
-
isFreeTier
public Template.Builder isFreeTier(Boolean isFreeTier)
whether the template will work for free tier tenancy.- Parameters:
isFreeTier
- the value to set- Returns:
- this builder
-
timeCreated
public Template.Builder timeCreated(Date timeCreated)
The date and time at which the template was created.Format is defined by RFC3339. Example: 2020-11-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
templateConfigSource
public Template.Builder templateConfigSource(TemplateConfigSource templateConfigSource)
-
lifecycleState
public Template.Builder lifecycleState(Template.LifecycleState lifecycleState)
The current lifecycle state of the template.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
freeformTags
public Template.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags associated with the resource.Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public Template.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public Template build()
-
copy
public Template.Builder copy(Template model)
-
-