All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yodlee.api.model.enrichData.EnrichDataUser Maven / Gradle / Ivy

There is a newer version: 1.0.29.beta1
Show newest version
/**
 * Copyright (c) 2019 Yodlee, Inc. All Rights Reserved.
 *
 * Licensed under the MIT License. See LICENSE file in the project root for license information.
 */
package com.yodlee.api.model.enrichData;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yodlee.api.model.AbstractModelComponent;
import com.yodlee.api.model.Name;
import com.yodlee.api.model.user.UserAddress;
import com.yodlee.api.model.user.UserRequestPreferences;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class EnrichDataUser extends AbstractModelComponent {

	@NotEmpty(message = "{enrichData.data.invalid}")
	@Size(min = 3, max = 150, message = "{user.loginName.length.invalid}")
	@Pattern(regexp = "[^\\s]+", message = "{user.loginName.invalid}")
	@JsonProperty("loginName")
	private String loginName;

	@NotEmpty(message = "{enrichData.data.invalid}")
	@Email(message= "{user.email.invalid}")
	@JsonProperty("email")
	private String email;

	@JsonProperty("name")
	protected Name name;

	@JsonProperty("address")
	protected UserAddress address;

	@JsonProperty("preferences")
	protected UserRequestPreferences preferences;

	@JsonProperty("segmentName")
	protected String segmentName;

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Name getName() {
		return name;
	}

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

	@JsonProperty("address")
	public UserAddress getAddress() {
		return address;
	}

	@JsonProperty("address")
	public void setAddress(UserAddress address) {
		this.address = address;
	}

	public UserRequestPreferences getPreferences() {
		return preferences;
	}

	public void setPreferences(UserRequestPreferences preferences) {
		this.preferences = preferences;
	}

	public String getSegmentName() {
		return segmentName;
	}

	public void setSegmentName(String segmentName) {
		this.segmentName = segmentName;
	}

	@Override
	public String toString() {
		return "DataEnrichUserRequest [loginName=" + loginName + ", email=" + email + ", name=" + name
				+ ", preferences=" + preferences + ", segmentName=" + segmentName + "]";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy