public class AddPartitionsRequest extends java.lang.Object implements RESTRequest
Constructor and Description |
---|
AddPartitionsRequest()
Default constructor for Jackson.
|
AddPartitionsRequest(PartitionDTO[] partitions)
Constructor for the request.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
|
public AddPartitionsRequest()
public AddPartitionsRequest(PartitionDTO[] partitions)
partitions
- The partitions to add.public void validate() throws java.lang.IllegalArgumentException
RESTMessage
This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
validate
in interface RESTMessage
java.lang.IllegalArgumentException