org.wallride.model.UserUpdateRequest Maven / Gradle / Ivy
/*
* Copyright 2014 Tagbangers, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wallride.model;
import org.wallride.domain.PersonalName;
import java.io.Serializable;
@SuppressWarnings("serial")
public class UserUpdateRequest implements Serializable {
private Long id;
private String loginId;
private PersonalName name;
private String nickname;
private String email;
private String description;
public Long getId() {
return id;
}
public String getLoginId() {
return loginId;
}
public PersonalName getName() {
return name;
}
public String getNickname() {
return nickname;
}
public String getEmail() {
return email;
}
public String getDescription() {
return description;
}
public static class Builder {
private Long id;
private String loginId;
private PersonalName name;
private String nickname;
private String email;
private String description;
public Builder() {
}
public Builder id(Long id) {
this.id = id;
return this;
}
public Builder loginId(String loginId) {
this.loginId = loginId;
return this;
}
public Builder name(PersonalName name) {
this.name = name;
return this;
}
public Builder nickname(String nickname) {
this.nickname = nickname;
return this;
}
public Builder email(String email) {
this.email = email;
return this;
}
public Builder description(String description) {
this.description = description;
return this;
}
public UserUpdateRequest build() {
UserUpdateRequest request = new UserUpdateRequest();
request.id = id;
request.loginId = loginId;
request.name = name;
request.nickname = nickname;
request.email = email;
request.description = description;
return request;
}
}
}