@Bean(fluentSetters=true, properties="id,name,price,species,tags,photo,status") public class UpdatePet extends CreatePet
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) |
public UpdatePet(long id, String name, float price, Species species, String[] tags, PetStatus status, String photo)
id
- The name
- The price
- The species
- The tags
- The status
- The photo
- The public UpdatePet()
public long getId()
public UpdatePet id(long value)
value
- The public UpdatePet status(PetStatus value)
value
- The Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.