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