Class Translator.Builder

  • Enclosing class:
    Translator

    public static class Translator.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • 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
      • 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