Class WorkloadMapping.Builder
- java.lang.Object
-
- com.oracle.bmc.containerengine.model.WorkloadMapping.Builder
-
- Enclosing class:
- WorkloadMapping
public static class WorkloadMapping.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkloadMapping
build()
WorkloadMapping.Builder
clusterId(String clusterId)
The OCID of the cluster.WorkloadMapping.Builder
copy(WorkloadMapping model)
WorkloadMapping.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.WorkloadMapping.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.WorkloadMapping.Builder
id(String id)
The ocid of the workloadMapping.WorkloadMapping.Builder
lifecycleState(WorkloadMappingLifecycleState lifecycleState)
The state of the workloadMapping.WorkloadMapping.Builder
mappedCompartmentId(String mappedCompartmentId)
The OCID of the mapped customer compartment.WorkloadMapping.Builder
mappedTenancyId(String mappedTenancyId)
The OCID of the mapped customer tenancy.WorkloadMapping.Builder
namespace(String namespace)
The namespace of the workloadMapping.WorkloadMapping.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.WorkloadMapping.Builder
timeCreated(Date timeCreated)
The time the cluster was created.
-
-
-
Method Detail
-
id
public WorkloadMapping.Builder id(String id)
The ocid of the workloadMapping.- Parameters:
id
- the value to set- Returns:
- this builder
-
clusterId
public WorkloadMapping.Builder clusterId(String clusterId)
The OCID of the cluster.- Parameters:
clusterId
- the value to set- Returns:
- this builder
-
namespace
public WorkloadMapping.Builder namespace(String namespace)
The namespace of the workloadMapping.- Parameters:
namespace
- the value to set- Returns:
- this builder
-
mappedTenancyId
public WorkloadMapping.Builder mappedTenancyId(String mappedTenancyId)
The OCID of the mapped customer tenancy.- Parameters:
mappedTenancyId
- the value to set- Returns:
- this builder
-
mappedCompartmentId
public WorkloadMapping.Builder mappedCompartmentId(String mappedCompartmentId)
The OCID of the mapped customer compartment.- Parameters:
mappedCompartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public WorkloadMapping.Builder timeCreated(Date timeCreated)
The time the cluster was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
lifecycleState
public WorkloadMapping.Builder lifecycleState(WorkloadMappingLifecycleState lifecycleState)
The state of the workloadMapping.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
freeformTags
public WorkloadMapping.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. For more information, see Resource Tags. Example: {“Department”: “Finance”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public WorkloadMapping.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 WorkloadMapping.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public WorkloadMapping build()
-
copy
public WorkloadMapping.Builder copy(WorkloadMapping model)
-
-