Class AddOrUpdateSchemaRequestBuilder


  • public class AddOrUpdateSchemaRequestBuilder
    extends java.lang.Object
    • Method Detail

      • with

        public AddOrUpdateSchemaRequestBuilder with​(java.lang.String id,
                                                    java.io.Reader schemaJson)
                                             throws java.io.IOException,
                                                    io.envoyproxy.pgv.ValidationException
        Add a schema to the batch.
        Parameters:
        id - Schema ID
        schemaJson - Reader for schema JSON
        Returns:
        this
        Throws:
        java.io.IOException - If the schema cannot be read
        io.envoyproxy.pgv.ValidationException - If the schema cannot be validated
      • with

        public AddOrUpdateSchemaRequestBuilder with​(java.lang.String id,
                                                    java.lang.String schemaJson)
                                             throws java.io.IOException,
                                                    io.envoyproxy.pgv.ValidationException
        Add a schema to the batch.
        Parameters:
        id - Schema ID
        schemaJson - String containing the schema JSON
        Returns:
        this
        Throws:
        java.io.IOException - If the schema cannot be read
        io.envoyproxy.pgv.ValidationException - If the schema cannot be validated
      • addOrUpdate

        public void addOrUpdate()
        Execute the addOrUpdate call
        Throws:
        CerbosException - is the call fails