com.google.api.services.spectrum.model.Vcard Maven / Gradle / Ivy
/*
* Copyright 2010 Google 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.
*/
/*
* This code was generated by https://github.com/google/apis-client-generator/
* (build: 2016-05-04 15:59:39 UTC)
* on 2016-05-18 at 06:28:13 UTC
* Modify at your own risk.
*/
package com.google.api.services.spectrum.model;
/**
* A vCard-in-JSON message that contains only the fields needed for PAWS: - fn: Full name of an
* individual - org: Name of the organization - adr: Address fields - tel: Telephone numbers -
* email: Email addresses
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Spectrum Database API. For a detailed
* explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Vcard extends com.google.api.client.json.GenericJson {
/**
* The street address of the entity.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private VcardAddress adr;
/**
* An email address that can be used to reach the contact.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private VcardTypedText email;
/**
* The full name of the contact person. For example: John A. Smith.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String fn;
/**
* The organization associated with the registering entity.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private VcardTypedText org;
/**
* A telephone number that can be used to call the contact.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private VcardTelephone tel;
/**
* The street address of the entity.
* @return value or {@code null} for none
*/
public VcardAddress getAdr() {
return adr;
}
/**
* The street address of the entity.
* @param adr adr or {@code null} for none
*/
public Vcard setAdr(VcardAddress adr) {
this.adr = adr;
return this;
}
/**
* An email address that can be used to reach the contact.
* @return value or {@code null} for none
*/
public VcardTypedText getEmail() {
return email;
}
/**
* An email address that can be used to reach the contact.
* @param email email or {@code null} for none
*/
public Vcard setEmail(VcardTypedText email) {
this.email = email;
return this;
}
/**
* The full name of the contact person. For example: John A. Smith.
* @return value or {@code null} for none
*/
public java.lang.String getFn() {
return fn;
}
/**
* The full name of the contact person. For example: John A. Smith.
* @param fn fn or {@code null} for none
*/
public Vcard setFn(java.lang.String fn) {
this.fn = fn;
return this;
}
/**
* The organization associated with the registering entity.
* @return value or {@code null} for none
*/
public VcardTypedText getOrg() {
return org;
}
/**
* The organization associated with the registering entity.
* @param org org or {@code null} for none
*/
public Vcard setOrg(VcardTypedText org) {
this.org = org;
return this;
}
/**
* A telephone number that can be used to call the contact.
* @return value or {@code null} for none
*/
public VcardTelephone getTel() {
return tel;
}
/**
* A telephone number that can be used to call the contact.
* @param tel tel or {@code null} for none
*/
public Vcard setTel(VcardTelephone tel) {
this.tel = tel;
return this;
}
@Override
public Vcard set(String fieldName, Object value) {
return (Vcard) super.set(fieldName, value);
}
@Override
public Vcard clone() {
return (Vcard) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy