Package com.oracle.bmc.oda.model
Class Translator.Builder
- java.lang.Object
-
- com.oracle.bmc.oda.model.Translator.Builder
-
- Enclosing class:
- Translator
public static class Translator.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Translator.BuilderbaseUrl(String baseUrl)The base URL for invoking the Translation Service.Translatorbuild()Translator.Buildercopy(Translator model)Translator.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Usage of predefined tag keys.Translator.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type, or scope.Translator.Builderid(String id)Unique immutable identifier that was assigned when the Translator was created.Translator.BuilderlifecycleState(LifecycleState lifecycleState)The Translator’s current state.Translator.Buildername(String name)The descriptive name for this Translator.Translator.Builderproperties(Map<String,String> properties)Properties used when invoking the translation service.Translator.BuildertimeCreated(Date timeCreated)When the resource was created.Translator.BuildertimeUpdated(Date timeUpdated)When the resource was last updated.Translator.Buildertype(TranslationService type)The Translation Service to use for this Translator.
-
-
-
Method Detail
-
id
public Translator.Builder id(String id)
Unique immutable identifier that was assigned when the Translator was created.- Parameters:
id- the value to set- Returns:
- this builder
-
type
public Translator.Builder type(TranslationService type)
The Translation Service to use for this Translator.- Parameters:
type- the value to set- Returns:
- this builder
-
name
public Translator.Builder name(String name)
The descriptive name for this Translator.- Parameters:
name- the value to set- Returns:
- this builder
-
baseUrl
public Translator.Builder baseUrl(String baseUrl)
The base URL for invoking the Translation Service.- Parameters:
baseUrl- the value to set- Returns:
- this builder
-
lifecycleState
public Translator.Builder lifecycleState(LifecycleState lifecycleState)
The Translator’s current state.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
properties
public Translator.Builder properties(Map<String,String> properties)
Properties used when invoking the translation service.Each property is a simple key-value pair.
- Parameters:
properties- the value to set- Returns:
- this builder
-
timeCreated
public Translator.Builder timeCreated(Date timeCreated)
When the resource was created.A date-time string as described in RFC 3339, section 14.29.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public Translator.Builder timeUpdated(Date timeUpdated)
When the resource was last updated.A date-time string as described in RFC 3339, section 14.29.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
freeformTags
public Translator.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.Example: {“bar-key”: “value”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public Translator.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.These predefined keys are scoped to namespaces. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public Translator build()
-
copy
public Translator.Builder copy(Translator model)
-
-