com.softlayer.api.service.brand.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.brand;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Brand;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.brand.contact.Type;
/**
* SoftLayer_Brand_Contact contains the contact information for the brand such as Corporate or Support contact information
*
* @see SoftLayer_Brand_Contact
*/
@ApiType("SoftLayer_Brand_Contact")
public class Contact extends Entity {
@ApiProperty
protected Brand brand;
public Brand getBrand() {
return brand;
}
public void setBrand(Brand brand) {
this.brand = brand;
}
@ApiProperty
protected Type brandContactType;
public Type getBrandContactType() {
return brandContactType;
}
public void setBrandContactType(Type brandContactType) {
this.brandContactType = brandContactType;
}
/**
* The contact's address 1.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String address1;
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
address1Specified = true;
this.address1 = address1;
}
protected boolean address1Specified;
public boolean isAddress1Specified() {
return address1Specified;
}
public void unsetAddress1() {
address1 = null;
address1Specified = false;
}
/**
* The contact's address 2.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String address2;
public String getAddress2() {
return address2;
}
public void setAddress2(String address2) {
address2Specified = true;
this.address2 = address2;
}
protected boolean address2Specified;
public boolean isAddress2Specified() {
return address2Specified;
}
public void unsetAddress2() {
address2 = null;
address2Specified = false;
}
/**
* The contact's alternate phone number.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String alternatePhone;
public String getAlternatePhone() {
return alternatePhone;
}
public void setAlternatePhone(String alternatePhone) {
alternatePhoneSpecified = true;
this.alternatePhone = alternatePhone;
}
protected boolean alternatePhoneSpecified;
public boolean isAlternatePhoneSpecified() {
return alternatePhoneSpecified;
}
public void unsetAlternatePhone() {
alternatePhone = null;
alternatePhoneSpecified = false;
}
/**
* The contact's type identifier.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long brandContactTypeId;
public Long getBrandContactTypeId() {
return brandContactTypeId;
}
public void setBrandContactTypeId(Long brandContactTypeId) {
brandContactTypeIdSpecified = true;
this.brandContactTypeId = brandContactTypeId;
}
protected boolean brandContactTypeIdSpecified;
public boolean isBrandContactTypeIdSpecified() {
return brandContactTypeIdSpecified;
}
public void unsetBrandContactTypeId() {
brandContactTypeId = null;
brandContactTypeIdSpecified = false;
}
/**
* The contact's city.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String city;
public String getCity() {
return city;
}
public void setCity(String city) {
citySpecified = true;
this.city = city;
}
protected boolean citySpecified;
public boolean isCitySpecified() {
return citySpecified;
}
public void unsetCity() {
city = null;
citySpecified = false;
}
/**
* The contact's country.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String country;
public String getCountry() {
return country;
}
public void setCountry(String country) {
countrySpecified = true;
this.country = country;
}
protected boolean countrySpecified;
public boolean isCountrySpecified() {
return countrySpecified;
}
public void unsetCountry() {
country = null;
countrySpecified = false;
}
/**
* The contact's email address.
*/
@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;
}
/**
* The contact's fax number.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String faxPhone;
public String getFaxPhone() {
return faxPhone;
}
public void setFaxPhone(String faxPhone) {
faxPhoneSpecified = true;
this.faxPhone = faxPhone;
}
protected boolean faxPhoneSpecified;
public boolean isFaxPhoneSpecified() {
return faxPhoneSpecified;
}
public void unsetFaxPhone() {
faxPhone = null;
faxPhoneSpecified = false;
}
/**
* The 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;
}
/**
* The 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;
}
/**
* The contact's phone number.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String officePhone;
public String getOfficePhone() {
return officePhone;
}
public void setOfficePhone(String officePhone) {
officePhoneSpecified = true;
this.officePhone = officePhone;
}
protected boolean officePhoneSpecified;
public boolean isOfficePhoneSpecified() {
return officePhoneSpecified;
}
public void unsetOfficePhone() {
officePhone = null;
officePhoneSpecified = false;
}
/**
* The contact's postal code.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String postalCode;
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
postalCodeSpecified = true;
this.postalCode = postalCode;
}
protected boolean postalCodeSpecified;
public boolean isPostalCodeSpecified() {
return postalCodeSpecified;
}
public void unsetPostalCode() {
postalCode = null;
postalCodeSpecified = false;
}
/**
* The contact's state.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String state;
public String getState() {
return state;
}
public void setState(String state) {
stateSpecified = true;
this.state = state;
}
protected boolean stateSpecified;
public boolean isStateSpecified() {
return stateSpecified;
}
public void unsetState() {
state = null;
stateSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.Brand.Mask brand() {
return withSubMask("brand", com.softlayer.api.service.Brand.Mask.class);
}
public com.softlayer.api.service.brand.contact.Type.Mask brandContactType() {
return withSubMask("brandContactType", com.softlayer.api.service.brand.contact.Type.Mask.class);
}
public Mask address1() {
withLocalProperty("address1");
return this;
}
public Mask address2() {
withLocalProperty("address2");
return this;
}
public Mask alternatePhone() {
withLocalProperty("alternatePhone");
return this;
}
public Mask brandContactTypeId() {
withLocalProperty("brandContactTypeId");
return this;
}
public Mask city() {
withLocalProperty("city");
return this;
}
public Mask country() {
withLocalProperty("country");
return this;
}
public Mask email() {
withLocalProperty("email");
return this;
}
public Mask faxPhone() {
withLocalProperty("faxPhone");
return this;
}
public Mask firstName() {
withLocalProperty("firstName");
return this;
}
public Mask lastName() {
withLocalProperty("lastName");
return this;
}
public Mask officePhone() {
withLocalProperty("officePhone");
return this;
}
public Mask postalCode() {
withLocalProperty("postalCode");
return this;
}
public Mask state() {
withLocalProperty("state");
return this;
}
}
}