@Bean(fluentSetters=true, properties="name,price,species,tags,photo") public class CreatePet extends Object
Constructor and Description |
---|
CreatePet()
Empty constructor.
|
CreatePet(String name,
float price,
Species species,
String[] tags,
String photo)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static CreatePet |
example() |
String |
getName() |
String |
getPhoto() |
float |
getPrice() |
Species |
getSpecies() |
String[] |
getTags() |
CreatePet |
name(String value) |
CreatePet |
photo(String value) |
CreatePet |
price(float value) |
CreatePet |
species(Species value) |
CreatePet |
tags(String... value) |
public CreatePet(String name, float price, Species species, String[] tags, String photo)
name
- The price
- The species
- The tags
- The photo
- The public CreatePet()
public CreatePet name(String value)
value
- The public float getPrice()
public CreatePet price(float value)
value
- The public Species getSpecies()
public CreatePet species(Species value)
value
- The public CreatePet tags(String... value)
value
- The public CreatePet photo(String value)
value
- The Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.