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
RESTMessageThis 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 RESTMessagejava.lang.IllegalArgumentException