com.wix.restaurants.builders.ContactBuilder Maven / Gradle / Ivy
package com.wix.restaurants.builders;
import com.openrest.v1_1.Contact;
public class ContactBuilder {
private final Contact contact = new Contact();
public ContactBuilder firstName(String firstName) {
contact.firstName = firstName;
return this;
}
public ContactBuilder lastName(String lastName) {
contact.lastName = lastName;
return this;
}
public ContactBuilder phone(String phone) {
contact.phone = phone;
return this;
}
public ContactBuilder email(String email) {
contact.email = email;
return this;
}
public Contact build() {
return contact;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy