Class GetGrammarOptions.Builder

java.lang.Object
com.ibm.watson.speech_to_text.v1.model.GetGrammarOptions.Builder
Enclosing class:
GetGrammarOptions

public static class GetGrammarOptions.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String customizationId, String grammarName)
      Instantiates a new builder with required properties.
      Parameters:
      customizationId - the customizationId
      grammarName - the grammarName
  • Method Details

    • build

      public GetGrammarOptions build()
      Builds a GetGrammarOptions.
      Returns:
      the new GetGrammarOptions instance
    • customizationId

      public GetGrammarOptions.Builder customizationId​(String customizationId)
      Set the customizationId.
      Parameters:
      customizationId - the customizationId
      Returns:
      the GetGrammarOptions builder
    • grammarName

      public GetGrammarOptions.Builder grammarName​(String grammarName)
      Set the grammarName.
      Parameters:
      grammarName - the grammarName
      Returns:
      the GetGrammarOptions builder