public class CatalogCreateRequest extends java.lang.Object implements RESTRequest
Constructor and Description |
---|
CatalogCreateRequest()
Default constructor for CatalogCreateRequest.
|
CatalogCreateRequest(java.lang.String name,
Catalog.Type type,
java.lang.String provider,
java.lang.String comment,
java.util.Map<java.lang.String,java.lang.String> properties)
Constructor for CatalogCreateRequest.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the fields of the request.
|
public CatalogCreateRequest()
public CatalogCreateRequest(java.lang.String name, Catalog.Type type, java.lang.String provider, java.lang.String comment, java.util.Map<java.lang.String,java.lang.String> properties)
name
- The name of the catalog.type
- The type of the catalog.provider
- The provider of the catalog.comment
- The comment for the catalog.properties
- The properties for the catalog.public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
java.lang.IllegalArgumentException
- if name or type are not set.