com.softlayer.api.service.auxiliary.press.release.Contact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.auxiliary.press.release;
import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import java.util.concurrent.Future;
/**
* The SoftLayer_Auxiliary_Press_Release_Contact service provides all contacts associated to a press release.
*
* @see SoftLayer_Auxiliary_Press_Release_Contact
*/
@ApiType("SoftLayer_Auxiliary_Press_Release_Contact")
public class Contact extends Entity {
/**
* A press release contact's email
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String email;
public String getEmail() {
return email;
}
public void setEmail(String email) {
emailSpecified = true;
this.email = email;
}
protected boolean emailSpecified;
public boolean isEmailSpecified() {
return emailSpecified;
}
public void unsetEmail() {
email = null;
emailSpecified = false;
}
/**
* A press release contact's first name.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String firstName;
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
firstNameSpecified = true;
this.firstName = firstName;
}
protected boolean firstNameSpecified;
public boolean isFirstNameSpecified() {
return firstNameSpecified;
}
public void unsetFirstName() {
firstName = null;
firstNameSpecified = false;
}
/**
* A press release contact's internal
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
/**
* A press release contact's last name.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String lastName;
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
lastNameSpecified = true;
this.lastName = lastName;
}
protected boolean lastNameSpecified;
public boolean isLastNameSpecified() {
return lastNameSpecified;
}
public void unsetLastName() {
lastName = null;
lastNameSpecified = false;
}
/**
* A press release contact's phone
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String phone;
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
phoneSpecified = true;
this.phone = phone;
}
protected boolean phoneSpecified;
public boolean isPhoneSpecified() {
return phoneSpecified;
}
public void unsetPhone() {
phone = null;
phoneSpecified = false;
}
/**
* A press release contact's
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String professionalTitle;
public String getProfessionalTitle() {
return professionalTitle;
}
public void setProfessionalTitle(String professionalTitle) {
professionalTitleSpecified = true;
this.professionalTitle = professionalTitle;
}
protected boolean professionalTitleSpecified;
public boolean isProfessionalTitleSpecified() {
return professionalTitleSpecified;
}
public void unsetProfessionalTitle() {
professionalTitle = null;
professionalTitleSpecified = false;
}
public Service asService(ApiClient client) {
return service(client, id);
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
public static Service service(ApiClient client, Long id) {
return client.createService(Service.class, id == null ? null : id.toString());
}
/**
* The SoftLayer_Auxiliary_Press_Release_Contact service provides all contacts associated to a press release.
*
* @see SoftLayer_Auxiliary_Press_Release_Contact
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Auxiliary_Press_Release_Contact")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* getObject retrieves the SoftLayer_Auxiliary_Press_Release_Contact object whose contact id number corresponds to the ID number of the init parameter passed to the SoftLayer_Auxiliary_Press_Release service.
*
* @see SoftLayer_Auxiliary_Press_Release_Contact::getObject
*/
@ApiMethod(instanceRequired = true)
public Contact getObject();
}
public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask email() {
withLocalProperty("email");
return this;
}
public Mask firstName() {
withLocalProperty("firstName");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask lastName() {
withLocalProperty("lastName");
return this;
}
public Mask phone() {
withLocalProperty("phone");
return this;
}
public Mask professionalTitle() {
withLocalProperty("professionalTitle");
return this;
}
}
}