Class Skill.Builder

  • Enclosing class:
    Skill

    public static class Skill.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Skill.Builder id​(String id)
        Unique immutable identifier that was assigned when the resource was created.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • name

        public Skill.Builder name​(String name)
        The reource’s name.

        The name can contain only letters, numbers, periods, and underscores. The name must begin with a letter.

        Parameters:
        name - the value to set
        Returns:
        this builder
      • version

        public Skill.Builder version​(String version)
        The resource’s version.

        The version can only contain numbers, letters, periods, underscores, dashes or spaces. The version must begin with a letter or a number.

        Parameters:
        version - the value to set
        Returns:
        this builder
      • displayName

        public Skill.Builder displayName​(String displayName)
        The resource’s display name.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • category

        public Skill.Builder category​(String category)
        The resource’s category.

        This is used to group resource’s together.

        Parameters:
        category - the value to set
        Returns:
        this builder
      • description

        public Skill.Builder description​(String description)
        A short description of the resource.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • namespace

        public Skill.Builder namespace​(String namespace)
        The resource’s namespace.
        Parameters:
        namespace - the value to set
        Returns:
        this builder
      • lifecycleState

        public Skill.Builder lifecycleState​(LifecycleState lifecycleState)
        The resource’s current state.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Skill.Builder lifecycleDetails​(BotPublishState lifecycleDetails)
        The resource’s publish state.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • platformVersion

        public Skill.Builder platformVersion​(String platformVersion)
        The ODA Platform Version for this resource.
        Parameters:
        platformVersion - the value to set
        Returns:
        this builder
      • dialogVersion

        public Skill.Builder dialogVersion​(String dialogVersion)
        The resource’s dialog version.
        Parameters:
        dialogVersion - the value to set
        Returns:
        this builder
      • baseId

        public Skill.Builder baseId​(String baseId)
        The unique identifier for the base reource (when this resource extends another).
        Parameters:
        baseId - the value to set
        Returns:
        this builder
      • multilingualMode

        public Skill.Builder multilingualMode​(BotMultilingualMode multilingualMode)
        The multilingual mode for the resource.
        Parameters:
        multilingualMode - the value to set
        Returns:
        this builder
      • primaryLanguageTag

        public Skill.Builder primaryLanguageTag​(String primaryLanguageTag)
        The primary language for the resource.
        Parameters:
        primaryLanguageTag - the value to set
        Returns:
        this builder
      • nativeLanguageTags

        public Skill.Builder nativeLanguageTags​(List<String> nativeLanguageTags)
        A list of native languages supported by this resource.
        Parameters:
        nativeLanguageTags - the value to set
        Returns:
        this builder
      • timeCreated

        public Skill.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 Skill.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 Skill.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 Skill.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 Skill build()