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 Categorybuild()Category.BuildercompartmentId(String compartmentId)The OCID of the tenancy.Category.BuildercompartmentName(String compartmentName)The name associated with the compartment.Category.Buildercopy(Category model)Category.Builderdescription(String description)Text describing the category.Category.BuilderestimatedCostSaving(Double estimatedCostSaving)The estimated cost savings, in dollars, for the category.Category.BuilderextendedMetadata(Map<String,String> extendedMetadata)Additional metadata key/value pairs for the category.Category.Builderid(String id)The unique OCID of the category.Category.BuilderlifecycleState(LifecycleState lifecycleState)The category’s current state.Category.Buildername(String name)The name assigned to the category.Category.BuilderrecommendationCounts(List<RecommendationCount> recommendationCounts)An array of RecommendationCount objects grouped by the level of importance assigned to the recommendation.Category.BuilderresourceCounts(List<ResourceCount> resourceCounts)An array of ResourceCount objects grouped by the status of the recommendation.Category.BuildertimeCreated(Date timeCreated)The date and time the category details were created, in the format defined by RFC3339.Category.BuildertimeUpdated(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)
-
-