public class OwnerSetRequest extends java.lang.Object implements RESTRequest
| Constructor and Description |
|---|
OwnerSetRequest()
Default constructor for OwnerSetRequest.
|
OwnerSetRequest(java.lang.String name,
Owner.Type type)
Creates a new OwnerSetRequest.
|
| 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 OwnerSetRequest()
public OwnerSetRequest(java.lang.String name,
Owner.Type type)
name - The name of the owner.type - The type of the owner.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