public static class CreateTranslatorDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateTranslatorDetails.Builder |
authToken(String authToken)
The authentication token to use when invoking the Translation Service
|
CreateTranslatorDetails.Builder |
baseUrl(String baseUrl)
The base URL for invoking the Translation Service.
|
CreateTranslatorDetails |
build() |
CreateTranslatorDetails.Builder |
copy(CreateTranslatorDetails model) |
CreateTranslatorDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.
|
CreateTranslatorDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.
|
CreateTranslatorDetails.Builder |
properties(Map<String,String> properties)
Properties used when invoking the translation service.
|
CreateTranslatorDetails.Builder |
type(TranslationService type)
The Translation Service to use for this Translator.
|
public CreateTranslatorDetails.Builder type(TranslationService type)
The Translation Service to use for this Translator.
type
- the value to setpublic CreateTranslatorDetails.Builder baseUrl(String baseUrl)
The base URL for invoking the Translation Service.
baseUrl
- the value to setpublic CreateTranslatorDetails.Builder authToken(String authToken)
The authentication token to use when invoking the Translation Service
authToken
- the value to setpublic CreateTranslatorDetails.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 CreateTranslatorDetails.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 CreateTranslatorDetails.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 CreateTranslatorDetails build()
public CreateTranslatorDetails.Builder copy(CreateTranslatorDetails model)
Copyright © 2016–2024. All rights reserved.