001package org.nuxeo.box.api.marshalling.dao;
002
003import com.fasterxml.jackson.annotation.JsonProperty;
004
005import java.util.Map;
006
007/**
008 * Email.
009 */
010public class BoxEmail extends BoxObject {
011
012    public static final String FIELD_ACCESS = "access";
013
014    public static final String FIELD_EMAIL = "email";
015
016    public BoxEmail() {
017    }
018
019    public BoxEmail(BoxEmail obj) {
020        super(obj);
021    }
022
023    public BoxEmail(Map<String, Object> map) {
024        super(map);
025    }
026
027    /**
028     * @return the access
029     */
030    @JsonProperty(FIELD_ACCESS)
031    public String getAccess() {
032        return (String) getValue(FIELD_ACCESS);
033    }
034
035    /**
036     * @param access the access to set
037     */
038    @JsonProperty(FIELD_ACCESS)
039    private void setAccess(String access) {
040        put(FIELD_ACCESS, access);
041    }
042
043    /**
044     * @return the email
045     */
046    @JsonProperty(FIELD_EMAIL)
047    public String getEmail() {
048        return (String) getValue(FIELD_EMAIL);
049    }
050
051    /**
052     * @param email the email to set
053     */
054    @JsonProperty(FIELD_EMAIL)
055    private void setEmail(String email) {
056        put(FIELD_EMAIL, email);
057    }
058}