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