001/*
002 * Copyright 2013 Box, Inc. All rights reserved.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.nuxeo.box.api.marshalling.dao;
017
018import com.fasterxml.jackson.annotation.JsonProperty;
019
020import java.util.Map;
021
022/**
023 * Email.
024 */
025public class BoxEmail extends BoxObject {
026
027    public static final String FIELD_ACCESS = "access";
028
029    public static final String FIELD_EMAIL = "email";
030
031    public BoxEmail() {
032    }
033
034    public BoxEmail(BoxEmail obj) {
035        super(obj);
036    }
037
038    public BoxEmail(Map<String, Object> map) {
039        super(map);
040    }
041
042    /**
043     * @return the access
044     */
045    @JsonProperty(FIELD_ACCESS)
046    public String getAccess() {
047        return (String) getValue(FIELD_ACCESS);
048    }
049
050    /**
051     * @param access the access to set
052     */
053    @JsonProperty(FIELD_ACCESS)
054    private void setAccess(String access) {
055        put(FIELD_ACCESS, access);
056    }
057
058    /**
059     * @return the email
060     */
061    @JsonProperty(FIELD_EMAIL)
062    public String getEmail() {
063        return (String) getValue(FIELD_EMAIL);
064    }
065
066    /**
067     * @param email the email to set
068     */
069    @JsonProperty(FIELD_EMAIL)
070    private void setEmail(String email) {
071        put(FIELD_EMAIL, email);
072    }
073}