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 Templatebuild()Template.BuildercategoryId(String categoryId)Unique identifier for the category where the template is located.Template.BuildercompartmentId(String compartmentId)The OCID of the compartment containing this template.Template.Buildercopy(Template model)Template.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Template.Builderdescription(String description)Brief description of the template.Template.BuilderdisplayName(String displayName)A user-friendly name.Template.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags associated with the resource.Template.Builderid(String id)Unique identifier (OCID) for the template.Template.BuilderisFreeTier(Boolean isFreeTier)whether the template will work for free tier tenancy.Template.BuilderlifecycleState(Template.LifecycleState lifecycleState)The current lifecycle state of the template.Template.BuilderlongDescription(String longDescription)Detailed description of the template.Template.BuildersystemTags(Map<String,Map<String,Object>> systemTags)The system tags associated with this resource, if any.Template.BuildertemplateConfigSource(TemplateConfigSource templateConfigSource)Template.BuildertimeCreated(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)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- 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
-
systemTags
public Template.Builder systemTags(Map<String,Map<String,Object>> systemTags)
The system tags associated with this resource, if any.The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public Template build()
-
copy
public Template.Builder copy(Template model)
-
-