Interface UpdateWarehouseInputValidator
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface UpdateWarehouseInputValidator
A validator for the input ofUpdateWarehouseHandler, may be used to provide custom warehouse validation.Default implementation of this validator:
- validates if a provided warehouse name is a valid identifier
- validates if a provided warehouse name is different than the currently configured one
- validates if the application can access the new warehouse
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static UpdateWarehouseInputValidatorgetInstance(Session session)Returns a new instance ofUpdateWarehouseInputValidator.ConnectorResponsevalidate(Identifier warehouse)Validates the provided warehouse.
-
-
-
Method Detail
-
validate
ConnectorResponse validate(Identifier warehouse)
Validates the provided warehouse.- Parameters:
warehouse- new warehouse name provided to the handler- Returns:
- a response with the code
OKif the validation was successful, otherwise a response with an error code and an error message
-
getInstance
static UpdateWarehouseInputValidator getInstance(Session session)
Returns a new instance ofUpdateWarehouseInputValidator.- Parameters:
session- Snowpark session object- Returns:
- a new Update Warehouse input validator.
-
-