public static class Translator.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Translator.Builder |
baseUrl(String baseUrl)
The base URL for invoking the Translation Service.
|
Translator |
build() |
Translator.Builder |
copy(Translator model) |
Translator.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.
|
Translator.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.
|
Translator.Builder |
id(String id)
Unique immutable identifier that was assigned when the Translator was created.
|
Translator.Builder |
lifecycleState(LifecycleState lifecycleState)
The Translator’s current state.
|
Translator.Builder |
name(String name)
The descriptive name for this Translator.
|
Translator.Builder |
properties(Map<String,String> properties)
Properties used when invoking the translation service.
|
Translator.Builder |
timeCreated(Date timeCreated)
When the resource was created.
|
Translator.Builder |
timeUpdated(Date timeUpdated)
When the resource was last updated.
|
Translator.Builder |
type(TranslationService type)
The Translation Service to use for this Translator.
|
public Translator.Builder id(String id)
Unique immutable identifier that was assigned when the Translator was created.
id
- the value to setpublic Translator.Builder type(TranslationService type)
The Translation Service to use for this Translator.
type
- the value to setpublic Translator.Builder name(String name)
The descriptive name for this Translator.
name
- the value to setpublic Translator.Builder baseUrl(String baseUrl)
The base URL for invoking the Translation Service.
baseUrl
- the value to setpublic Translator.Builder lifecycleState(LifecycleState lifecycleState)
The Translator’s current state.
lifecycleState
- the value to setpublic Translator.Builder properties(Map<String,String> properties)
Properties used when invoking the translation service. Each property is a simple key-value pair.
properties
- the value to setpublic Translator.Builder timeCreated(Date timeCreated)
When the resource was created. A date-time string as described in RFC 3339, section 14.29.
timeCreated
- the value to setpublic Translator.Builder timeUpdated(Date timeUpdated)
When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
timeUpdated
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic Translator build()
public Translator.Builder copy(Translator model)
Copyright © 2016–2024. All rights reserved.