2020-03-20 17:20:22 +01:00
|
|
|
|
|
|
|
package eu.eudat.models.rda;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The DMP Contact Schema
|
|
|
|
* <p>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
|
|
@JsonPropertyOrder({
|
|
|
|
"contact_id",
|
|
|
|
"mbox",
|
|
|
|
"name"
|
|
|
|
})
|
|
|
|
public class Contact implements Serializable
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Contact ID Schema
|
|
|
|
* <p>
|
|
|
|
*
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("contact_id")
|
|
|
|
private ContactId contactId;
|
|
|
|
/**
|
|
|
|
* The Mailbox Schema
|
|
|
|
* <p>
|
|
|
|
* Contact Person's E-mail address
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("mbox")
|
|
|
|
@JsonPropertyDescription("Contact Person's E-mail address")
|
|
|
|
private String mbox;
|
|
|
|
/**
|
|
|
|
* The Name Schema
|
|
|
|
* <p>
|
|
|
|
* Name of the contact person
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("name")
|
|
|
|
@JsonPropertyDescription("Name of the contact person")
|
|
|
|
private String name;
|
|
|
|
@JsonIgnore
|
|
|
|
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
|
|
|
private final static long serialVersionUID = -2062619884605400321L;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Contact ID Schema
|
|
|
|
* <p>
|
|
|
|
*
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("contact_id")
|
|
|
|
public ContactId getContactId() {
|
|
|
|
return contactId;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Contact ID Schema
|
|
|
|
* <p>
|
|
|
|
*
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("contact_id")
|
|
|
|
public void setContactId(ContactId contactId) {
|
|
|
|
this.contactId = contactId;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Mailbox Schema
|
|
|
|
* <p>
|
|
|
|
* Contact Person's E-mail address
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("mbox")
|
|
|
|
public String getMbox() {
|
|
|
|
return mbox;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Mailbox Schema
|
|
|
|
* <p>
|
|
|
|
* Contact Person's E-mail address
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("mbox")
|
|
|
|
public void setMbox(String mbox) {
|
|
|
|
this.mbox = mbox;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Name Schema
|
|
|
|
* <p>
|
|
|
|
* Name of the contact person
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("name")
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Name Schema
|
|
|
|
* <p>
|
|
|
|
* Name of the contact person
|
|
|
|
* (Required)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@JsonProperty("name")
|
|
|
|
public void setName(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
2021-12-17 15:21:32 +01:00
|
|
|
@JsonProperty("additional_properties")
|
2020-03-20 17:20:22 +01:00
|
|
|
public Map<String, Object> getAdditionalProperties() {
|
|
|
|
return this.additionalProperties;
|
|
|
|
}
|
|
|
|
|
2021-12-17 15:21:32 +01:00
|
|
|
@JsonProperty("additional_properties")
|
2020-03-20 17:20:22 +01:00
|
|
|
public void setAdditionalProperty(String name, Object value) {
|
|
|
|
this.additionalProperties.put(name, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|