Class BaselineableMetric.Builder
- java.lang.Object
-
- com.oracle.bmc.stackmonitoring.model.BaselineableMetric.Builder
-
- Enclosing class:
- BaselineableMetric
public static class BaselineableMetric.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public BaselineableMetric.Builder id(String id)
OCID of the metric- Parameters:
id
- the value to set- Returns:
- this builder
-
lifecycleState
public BaselineableMetric.Builder lifecycleState(BaselineableMetricLifeCycleStates lifecycleState)
The current lifecycle state of the metric extension- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
tenancyId
public BaselineableMetric.Builder tenancyId(String tenancyId)
OCID of the tenancy- Parameters:
tenancyId
- the value to set- Returns:
- this builder
-
compartmentId
public BaselineableMetric.Builder compartmentId(String compartmentId)
OCID of the compartment- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
name
public BaselineableMetric.Builder name(String name)
name of the metric- Parameters:
name
- the value to set- Returns:
- this builder
-
column
public BaselineableMetric.Builder column(String column)
metric column name- Parameters:
column
- the value to set- Returns:
- this builder
-
namespace
public BaselineableMetric.Builder namespace(String namespace)
namespace of the metric- Parameters:
namespace
- the value to set- Returns:
- this builder
-
resourceGroup
public BaselineableMetric.Builder resourceGroup(String resourceGroup)
Resource group of the metric- Parameters:
resourceGroup
- the value to set- Returns:
- this builder
-
resourceType
public BaselineableMetric.Builder resourceType(String resourceType)
Resource type of the metric- Parameters:
resourceType
- the value to set- Returns:
- this builder
-
isOutOfBox
public BaselineableMetric.Builder isOutOfBox(Boolean isOutOfBox)
Is the metric created out of box, default false- Parameters:
isOutOfBox
- the value to set- Returns:
- this builder
-
createdBy
public BaselineableMetric.Builder createdBy(String createdBy)
Created user id- Parameters:
createdBy
- the value to set- Returns:
- this builder
-
lastUpdatedBy
public BaselineableMetric.Builder lastUpdatedBy(String lastUpdatedBy)
last Updated user id- Parameters:
lastUpdatedBy
- the value to set- Returns:
- this builder
-
timeCreated
public BaselineableMetric.Builder timeCreated(Date timeCreated)
creation date- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeLastUpdated
public BaselineableMetric.Builder timeLastUpdated(Date timeLastUpdated)
last updated time- Parameters:
timeLastUpdated
- the value to set- Returns:
- this builder
-
freeformTags
public BaselineableMetric.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 BaselineableMetric.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 BaselineableMetric.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 BaselineableMetric build()
-
copy
public BaselineableMetric.Builder copy(BaselineableMetric model)
-
-