Package com.oracle.bmc.datascience.model
Class ComputeTarget.Builder
- java.lang.Object
-
- com.oracle.bmc.datascience.model.ComputeTarget.Builder
-
- Enclosing class:
- ComputeTarget
public static class ComputeTarget.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeTargetbuild()ComputeTarget.BuildercompartmentId(String compartmentId)The OCID of the compartment associated with the compute target.ComputeTarget.BuildercomputeConfigurationDetails(ComputeConfigurationDetails computeConfigurationDetails)ComputeTarget.BuildercomputeTargetSystemData(ComputeTargetSystemData computeTargetSystemData)ComputeTarget.Buildercopy(ComputeTarget model)ComputeTarget.BuildercreatedBy(String createdBy)The OCID of the user who created the compute target.ComputeTarget.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ComputeTarget.Builderdescription(String description)A short description of the compute target.ComputeTarget.BuilderdisplayName(String displayName)A user-friendly display name for the resource.ComputeTarget.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.ComputeTarget.Builderid(String id)The OCID of the compute target.ComputeTarget.BuilderlifecycleDetails(String lifecycleDetails)Details about the state of the compute target.ComputeTarget.BuilderlifecycleState(ComputeTargetLifecycleState lifecycleState)The state of the compute target.ComputeTarget.Buildermetadata(Map<String,String> metadata)Metadata for the compute target.ComputeTarget.BuildertimeCreated(Date timeCreated)The date and time the resource was created in the timestamp format defined by RFC3339.
-
-
-
Method Detail
-
id
public ComputeTarget.Builder id(String id)
The OCID of the compute target.- Parameters:
id- the value to set- Returns:
- this builder
-
timeCreated
public ComputeTarget.Builder timeCreated(Date timeCreated)
The date and time the resource was created in the timestamp format defined by RFC3339.Example: 2020-08-06T21:10:29.41Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
metadata
public ComputeTarget.Builder metadata(Map<String,String> metadata)
Metadata for the compute target.The size of metadata must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore () Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg. TEST Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall metadata is limited to 2048 bytes. Key can’t be reserved Compute Target metadata.
- Parameters:
metadata- the value to set- Returns:
- this builder
-
createdBy
public ComputeTarget.Builder createdBy(String createdBy)
The OCID of the user who created the compute target.- Parameters:
createdBy- the value to set- Returns:
- this builder
-
compartmentId
public ComputeTarget.Builder compartmentId(String compartmentId)
The OCID of the compartment associated with the compute target.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public ComputeTarget.Builder displayName(String displayName)
A user-friendly display name for the resource.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public ComputeTarget.Builder description(String description)
A short description of the compute target.- Parameters:
description- the value to set- Returns:
- this builder
-
computeConfigurationDetails
public ComputeTarget.Builder computeConfigurationDetails(ComputeConfigurationDetails computeConfigurationDetails)
-
computeTargetSystemData
public ComputeTarget.Builder computeTargetSystemData(ComputeTargetSystemData computeTargetSystemData)
-
lifecycleState
public ComputeTarget.Builder lifecycleState(ComputeTargetLifecycleState lifecycleState)
The state of the compute target.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public ComputeTarget.Builder lifecycleDetails(String lifecycleDetails)
Details about the state of the compute target.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
freeformTags
public ComputeTarget.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {“Department”: “Finance”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public ComputeTarget.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public ComputeTarget build()
-
copy
public ComputeTarget.Builder copy(ComputeTarget model)
-
-