@Bean(fluentSetters=true, properties="id,name,price,species,tags,photo,status") public class UpdatePet extends CreatePet
Pet
objects.Constructor and Description |
---|
UpdatePet()
Empty constructor.
|
UpdatePet(long id,
String name,
float price,
Species species,
String[] tags,
PetStatus status,
String photo)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static UpdatePet |
example() |
long |
getId() |
PetStatus |
getStatus() |
UpdatePet |
id(long value) |
UpdatePet |
name(String value) |
UpdatePet |
photo(String value) |
UpdatePet |
price(float value) |
UpdatePet |
species(Species value) |
UpdatePet |
status(PetStatus value) |
UpdatePet |
tags(String... value) |
Copyright © 2018 Apache. All rights reserved.