Class ImportDocumentationPartsRequest

    • Method Detail

      • restApiId

        public final String restApiId()

        The string identifier of the associated RestApi.

        Returns:
        The string identifier of the associated RestApi.
      • mode

        public final PutMode mode()

        A query parameter to indicate whether to overwrite (overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value is merge.

        If the service returns an enum value that is not available in the current SDK version, mode will return PutMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from modeAsString().

        Returns:
        A query parameter to indicate whether to overwrite (overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value is merge.
        See Also:
        PutMode
      • modeAsString

        public final String modeAsString()

        A query parameter to indicate whether to overwrite (overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value is merge.

        If the service returns an enum value that is not available in the current SDK version, mode will return PutMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from modeAsString().

        Returns:
        A query parameter to indicate whether to overwrite (overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value is merge.
        See Also:
        PutMode
      • failOnWarnings

        public final Boolean failOnWarnings()

        A query parameter to specify whether to rollback the documentation importation (true) or not ( false) when a warning is encountered. The default value is false.

        Returns:
        A query parameter to specify whether to rollback the documentation importation (true) or not (false) when a warning is encountered. The default value is false.
      • body

        public final SdkBytes body()

        Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.

        Returns:
        Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object