public static class CategorySummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public CategorySummary.Builder id(String id)
The unique OCID of the category.
id
- the value to setpublic CategorySummary.Builder compartmentId(String compartmentId)
The OCID of the tenancy. The tenancy is the root compartment.
compartmentId
- the value to setpublic CategorySummary.Builder compartmentName(String compartmentName)
The name associated with the compartment.
compartmentName
- the value to setpublic CategorySummary.Builder name(String name)
The name assigned to the category.
name
- the value to setpublic CategorySummary.Builder description(String description)
Text describing the category.
description
- the value to setpublic CategorySummary.Builder recommendationCounts(List<RecommendationCount> recommendationCounts)
An array of RecommendationCount
objects grouped by the level of importance
assigned to each recommendation.
recommendationCounts
- the value to setpublic CategorySummary.Builder resourceCounts(List<ResourceCount> resourceCounts)
An array of ResourceCount
objects grouped by the status of each recommendation.
resourceCounts
- the value to setpublic CategorySummary.Builder lifecycleState(LifecycleState lifecycleState)
The category’s current state.
lifecycleState
- the value to setpublic CategorySummary.Builder estimatedCostSaving(Double estimatedCostSaving)
The estimated cost savings, in dollars, for the category.
estimatedCostSaving
- the value to setpublic CategorySummary.Builder timeCreated(Date timeCreated)
The date and time the category details were created, in the format defined by RFC3339.
timeCreated
- the value to setpublic CategorySummary.Builder timeUpdated(Date timeUpdated)
The date and time the category details were last updated, in the format defined by RFC3339.
timeUpdated
- the value to setpublic CategorySummary.Builder extendedMetadata(Map<String,String> extendedMetadata)
Additional metadata key/value pairs for the category summary.
For example:
{"EstimatedSaving": "200"}
extendedMetadata
- the value to setpublic CategorySummary build()
public CategorySummary.Builder copy(CategorySummary model)
Copyright © 2016–2024. All rights reserved.