Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,32 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {
{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{{datatypeWithEnum}}} {{getter}}() {
return {{name}};
}

{{^isReadOnly}}
public void {{setter}}({{{datatypeWithEnum}}} {{name}}) {
this.{{name}} = {{name}};
}

public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
this.{{name}} = {{name}};
return this;
}
{{#isListContainer}}

public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
this.{{name}}.add({{name}}Item);
return this;
}
{{/isListContainer}}
{{#isMapContainer}}

public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
this.{{name}}.put(key, {{name}}Item);
return this;
}
{{/isMapContainer}}
{{/isReadOnly}}

{{/vars}}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,34 @@ public class Category {
public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public Category id(Long id) {
this.id = id;
return this;
}

/**
* Get name
* @return name
**/
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public Category name(String name) {
this.name = name;
return this;
}


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,51 @@ public class ModelApiResponse {
public Integer getCode() {
return code;
}

public void setCode(Integer code) {
this.code = code;
}

public ModelApiResponse code(Integer code) {
this.code = code;
return this;
}

/**
* Get type
* @return type
**/
public String getType() {
return type;
}

public void setType(String type) {
this.type = type;
}

public ModelApiResponse type(String type) {
this.type = type;
return this;
}

/**
* Get message
* @return message
**/
public String getMessage() {
return message;
}

public void setMessage(String message) {
this.message = message;
}

public ModelApiResponse message(String message) {
this.message = message;
return this;
}


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,60 +67,102 @@ public static StatusEnum fromValue(String v) {
public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public Order id(Long id) {
this.id = id;
return this;
}

/**
* Get petId
* @return petId
**/
public Long getPetId() {
return petId;
}

public void setPetId(Long petId) {
this.petId = petId;
}

public Order petId(Long petId) {
this.petId = petId;
return this;
}

/**
* Get quantity
* @return quantity
**/
public Integer getQuantity() {
return quantity;
}

public void setQuantity(Integer quantity) {
this.quantity = quantity;
}

public Order quantity(Integer quantity) {
this.quantity = quantity;
return this;
}

/**
* Get shipDate
* @return shipDate
**/
public javax.xml.datatype.XMLGregorianCalendar getShipDate() {
return shipDate;
}

public void setShipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) {
this.shipDate = shipDate;
}

public Order shipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) {
this.shipDate = shipDate;
return this;
}

/**
* Order Status
* @return status
**/
public StatusEnum getStatus() {
return status;
}

public void setStatus(StatusEnum status) {
this.status = status;
}

public Order status(StatusEnum status) {
this.status = status;
return this;
}

/**
* Get complete
* @return complete
**/
public Boolean getComplete() {
return complete;
}

public void setComplete(Boolean complete) {
this.complete = complete;
}

public Order complete(Boolean complete) {
this.complete = complete;
return this;
}


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,60 +71,112 @@ public static StatusEnum fromValue(String v) {
public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public Pet id(Long id) {
this.id = id;
return this;
}

/**
* Get category
* @return category
**/
public Category getCategory() {
return category;
}

public void setCategory(Category category) {
this.category = category;
}

public Pet category(Category category) {
this.category = category;
return this;
}

/**
* Get name
* @return name
**/
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public Pet name(String name) {
this.name = name;
return this;
}

/**
* Get photoUrls
* @return photoUrls
**/
public List<String> getPhotoUrls() {
return photoUrls;
}

public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls;
}

public Pet photoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
}

public Pet addPhotoUrlsItem(String photoUrlsItem) {
this.photoUrls.add(photoUrlsItem);
return this;
}

/**
* Get tags
* @return tags
**/
public List<Tag> getTags() {
return tags;
}

public void setTags(List<Tag> tags) {
this.tags = tags;
}

public Pet tags(List<Tag> tags) {
this.tags = tags;
return this;
}

public Pet addTagsItem(Tag tagsItem) {
this.tags.add(tagsItem);
return this;
}

/**
* pet status in the store
* @return status
**/
public StatusEnum getStatus() {
return status;
}

public void setStatus(StatusEnum status) {
this.status = status;
}

public Pet status(StatusEnum status) {
this.status = status;
return this;
}


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,34 @@ public class Tag {
public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public Tag id(Long id) {
this.id = id;
return this;
}

/**
* Get name
* @return name
**/
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public Tag name(String name) {
this.name = name;
return this;
}


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
Expand Down
Loading