Package com.oracle.bmc.optimizer.model
Class Category.Builder
- java.lang.Object
-
- com.oracle.bmc.optimizer.model.Category.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Category
build()
Category.Builder
compartmentId(String compartmentId)
The OCID of the tenancy.Category.Builder
compartmentName(String compartmentName)
The name associated with the compartment.Category.Builder
copy(Category model)
Category.Builder
description(String description)
Text describing the category.Category.Builder
estimatedCostSaving(Double estimatedCostSaving)
The estimated cost savings, in dollars, for the category.Category.Builder
extendedMetadata(Map<String,String> extendedMetadata)
Additional metadata key/value pairs for the category.Category.Builder
id(String id)
The unique OCID of the category.Category.Builder
lifecycleState(LifecycleState lifecycleState)
The category’s current state.Category.Builder
name(String name)
The name assigned to the category.Category.Builder
recommendationCounts(List<RecommendationCount> recommendationCounts)
An array of RecommendationCount objects grouped by the level of importance assigned to the recommendation.Category.Builder
resourceCounts(List<ResourceCount> resourceCounts)
An array of ResourceCount objects grouped by the status of the recommendation.Category.Builder
timeCreated(Date timeCreated)
The date and time the category details were created, in the format defined by RFC3339.Category.Builder
timeUpdated(Date timeUpdated)
The date and time the category details were last updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public Category.Builder id(String id)
The unique OCID of the category.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public Category.Builder compartmentId(String compartmentId)
The OCID of the tenancy.The tenancy is the root compartment.
- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
compartmentName
public Category.Builder compartmentName(String compartmentName)
The name associated with the compartment.- Parameters:
compartmentName
- the value to set- Returns:
- this builder
-
name
public Category.Builder name(String name)
The name assigned to the category.- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public Category.Builder description(String description)
Text describing the category.- Parameters:
description
- the value to set- Returns:
- this builder
-
recommendationCounts
public Category.Builder recommendationCounts(List<RecommendationCount> recommendationCounts)
An array of RecommendationCount objects grouped by the level of importance assigned to the recommendation.- Parameters:
recommendationCounts
- the value to set- Returns:
- this builder
-
resourceCounts
public Category.Builder resourceCounts(List<ResourceCount> resourceCounts)
An array of ResourceCount objects grouped by the status of the recommendation.- Parameters:
resourceCounts
- the value to set- Returns:
- this builder
-
lifecycleState
public Category.Builder lifecycleState(LifecycleState lifecycleState)
The category’s current state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
estimatedCostSaving
public Category.Builder estimatedCostSaving(Double estimatedCostSaving)
The estimated cost savings, in dollars, for the category.- Parameters:
estimatedCostSaving
- the value to set- Returns:
- this builder
-
timeCreated
public Category.Builder timeCreated(Date timeCreated)
The date and time the category details were created, in the format defined by RFC3339.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Category.Builder timeUpdated(Date timeUpdated)
The date and time the category details were last updated, in the format defined by RFC3339.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
extendedMetadata
public Category.Builder extendedMetadata(Map<String,String> extendedMetadata)
Additional metadata key/value pairs for the category.For example:
{"EstimatedSaving": "200"}
- Parameters:
extendedMetadata
- the value to set- Returns:
- this builder
-
build
public Category build()
-
copy
public Category.Builder copy(Category model)
-
-