Package com.oracle.bmc.optimizer.model
Class ProfileSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.optimizer.model.ProfileSummary.Builder
-
- Enclosing class:
- ProfileSummary
public static class ProfileSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileSummary.BuilderaggregationIntervalInDays(Integer aggregationIntervalInDays)The time period over which to collect data for the recommendations, measured in number of days.ProfileSummarybuild()ProfileSummary.BuildercompartmentId(String compartmentId)The OCID of the tenancy.ProfileSummary.Buildercopy(ProfileSummary model)ProfileSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ProfileSummary.Builderdescription(String description)Text describing the profile.ProfileSummary.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair applied without any predefined name, type, or namespace.ProfileSummary.Builderid(String id)The unique OCID of the profile.ProfileSummary.BuilderlevelsConfiguration(LevelsConfiguration levelsConfiguration)ProfileSummary.BuilderlifecycleState(LifecycleState lifecycleState)The profile’s current state.ProfileSummary.Buildername(String name)The name assigned to the profile.ProfileSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.ProfileSummary.BuildertargetCompartments(TargetCompartments targetCompartments)ProfileSummary.BuildertargetTags(TargetTags targetTags)ProfileSummary.BuildertimeCreated(Date timeCreated)The date and time the profile was created, in the format defined by RFC3339.ProfileSummary.BuildertimeUpdated(Date timeUpdated)The date and time the profile was last updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public ProfileSummary.Builder id(String id)
The unique OCID of the profile.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public ProfileSummary.Builder compartmentId(String compartmentId)
The OCID of the tenancy.The tenancy is the root compartment.
- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
name
public ProfileSummary.Builder name(String name)
The name assigned to the profile.- Parameters:
name- the value to set- Returns:
- this builder
-
description
public ProfileSummary.Builder description(String description)
Text describing the profile.- Parameters:
description- the value to set- Returns:
- this builder
-
aggregationIntervalInDays
public ProfileSummary.Builder aggregationIntervalInDays(Integer aggregationIntervalInDays)
The time period over which to collect data for the recommendations, measured in number of days.- Parameters:
aggregationIntervalInDays- the value to set- Returns:
- this builder
-
definedTags
public ProfileSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"foo-namespace": {"bar-key": "value"}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
freeformTags
public ProfileSummary.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair applied without any predefined name, type, or namespace.For more information, see Resource Tags. Exists for cross-compatibility only.
Example: {"bar-key": "value"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
systemTags
public ProfileSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: { “orcl-cloud”: { “free-tier-retained”: “true” } }
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
lifecycleState
public ProfileSummary.Builder lifecycleState(LifecycleState lifecycleState)
The profile’s current state.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
levelsConfiguration
public ProfileSummary.Builder levelsConfiguration(LevelsConfiguration levelsConfiguration)
-
targetCompartments
public ProfileSummary.Builder targetCompartments(TargetCompartments targetCompartments)
-
targetTags
public ProfileSummary.Builder targetTags(TargetTags targetTags)
-
timeCreated
public ProfileSummary.Builder timeCreated(Date timeCreated)
The date and time the profile was created, in the format defined by RFC3339.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public ProfileSummary.Builder timeUpdated(Date timeUpdated)
The date and time the profile was last updated, in the format defined by RFC3339.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
build
public ProfileSummary build()
-
copy
public ProfileSummary.Builder copy(ProfileSummary model)
-
-