Class AnalyzeWithFlowOptions.Builder

  • Enclosing class:
    AnalyzeWithFlowOptions

    public static class AnalyzeWithFlowOptions.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String flowId)
        Instantiates a new builder with required properties.
        Parameters:
        flowId - the flowId
    • Method Detail

      • build

        public AnalyzeWithFlowOptions build()
        Builds a AnalyzeWithFlowOptions.
        Returns:
        the analyzeWithFlowOptions
      • contentType

        public AnalyzeWithFlowOptions.Builder contentType​(java.lang.String contentType)
        Set the flowId.
        Parameters:
        contentType - the content type for request
        Returns:
        the AnalyzeWithFlowOptions builder
      • flowId

        public AnalyzeWithFlowOptions.Builder flowId​(java.lang.String flowId)
        Set the flowId.
        Parameters:
        flowId - the flowId
        Returns:
        the AnalyzeWithFlowOptions builder
      • text

        public AnalyzeWithFlowOptions.Builder text​(java.lang.String text)
        Set the text.
        Parameters:
        text - the text
        Returns:
        the AnalyzeWithFlowOptions builder
      • returnAnalyzedText

        public AnalyzeWithFlowOptions.Builder returnAnalyzedText​(boolean returnAnalyzedText)
        Set the returnAnalyzedText.
        Parameters:
        returnAnalyzedText - whether to return the submitted text
        Returns:
        the AnalyzeWithFlowOptions builder
      • debug

        public AnalyzeWithFlowOptions.Builder debug​(boolean debug)
        Set the debug.
        Parameters:
        debug - enable analyze debug flag
        Returns:
        the AnalyzeWithFlowOptions builder