Class TermSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.marketplacepublisher.model.TermSummary.Builder
-
- Enclosing class:
- TermSummary
public static class TermSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermSummary.Builder
author(Term.Author author)
Who authored the term.TermSummary
build()
TermSummary.Builder
compartmentId(String compartmentId)
The unique identifier for the compartment.TermSummary.Builder
copy(TermSummary model)
TermSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.TermSummary.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.TermSummary.Builder
id(String id)
Unique OCID identifier for the term.TermSummary.Builder
lifecycleState(Term.LifecycleState lifecycleState)
The current state for the term version.TermSummary.Builder
name(String name)
The name for the term.TermSummary.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.TermSummary.Builder
timeCreated(Date timeCreated)
The date and time the resource was created, in the format defined by RFC3339.TermSummary.Builder
timeUpdated(Date timeUpdated)
The date and time the resource was updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public TermSummary.Builder id(String id)
Unique OCID identifier for the term.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public TermSummary.Builder compartmentId(String compartmentId)
The unique identifier for the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
name
public TermSummary.Builder name(String name)
The name for the term.- Parameters:
name
- the value to set- Returns:
- this builder
-
author
public TermSummary.Builder author(Term.Author author)
Who authored the term.Publisher terms will be defaulted to as ‘PARTNER’.
- Parameters:
author
- the value to set- Returns:
- this builder
-
lifecycleState
public TermSummary.Builder lifecycleState(Term.LifecycleState lifecycleState)
The current state for the term version.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public TermSummary.Builder timeCreated(Date timeCreated)
The date and time the resource was created, in the format defined by RFC3339.Example: 2022-09-15T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public TermSummary.Builder timeUpdated(Date timeUpdated)
The date and time the resource was updated, in the format defined by RFC3339.Example: 2022-09-15T21:10:29.600Z
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
freeformTags
public TermSummary.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public TermSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public TermSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public TermSummary build()
-
copy
public TermSummary.Builder copy(TermSummary model)
-
-