All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softlayer.api.service.container.dns.domain.registration.Contact Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.container.dns.domain.registration;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;

/**
 * Contact information container for domain registration 
 *
 * @see SoftLayer_Container_Dns_Domain_Registration_Contact
 */
@ApiType("SoftLayer_Container_Dns_Domain_Registration_Contact")
public class Contact extends Entity {

    /**
     * The street address of the contact.
     */
    @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 second line in the address of the contact.
     */
    @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 third line in the address of the contact.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String address3;

    public String getAddress3() {
        return address3;
    }

    public void setAddress3(String address3) {
        address3Specified = true;
        this.address3 = address3;
    }

    protected boolean address3Specified;

    public boolean isAddress3Specified() {
        return address3Specified;
    }

    public void unsetAddress3() {
        address3 = null;
        address3Specified = false;
    }

    /**
     * The city of the contact.
     */
    @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 2-character Country code. (i.e. US)
     */
    @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 email address of the contact.
     */
    @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 fax number of the contact.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String fax;

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        faxSpecified = true;
        this.fax = fax;
    }

    protected boolean faxSpecified;

    public boolean isFaxSpecified() {
        return faxSpecified;
    }

    public void unsetFax() {
        fax = null;
        faxSpecified = false;
    }

    /**
     * The first name of the contact.
     */
    @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 last name of the contact.
     */
    @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 organization name of the contact.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String organizationName;

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        organizationNameSpecified = true;
        this.organizationName = organizationName;
    }

    protected boolean organizationNameSpecified;

    public boolean isOrganizationNameSpecified() {
        return organizationNameSpecified;
    }

    public void unsetOrganizationName() {
        organizationName = null;
        organizationNameSpecified = false;
    }

    /**
     * The phone number of the contact.
     */
    @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;
    }

    /**
     * The postal code of the contact.
     */
    @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 state of the contact.
     */
    @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;
    }

    /**
     * The type of contact. The following are the valid types of contacts: 
* * admin
* * owner
* * billing
* * tech */ @ApiProperty(canBeNullOrNotSet = true) protected String type; public String getType() { return type; } public void setType(String type) { typeSpecified = true; this.type = type; } protected boolean typeSpecified; public boolean isTypeSpecified() { return typeSpecified; } public void unsetType() { type = null; typeSpecified = false; } public static class Mask extends com.softlayer.api.service.Entity.Mask { public Mask address1() { withLocalProperty("address1"); return this; } public Mask address2() { withLocalProperty("address2"); return this; } public Mask address3() { withLocalProperty("address3"); 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 fax() { withLocalProperty("fax"); return this; } public Mask firstName() { withLocalProperty("firstName"); return this; } public Mask lastName() { withLocalProperty("lastName"); return this; } public Mask organizationName() { withLocalProperty("organizationName"); return this; } public Mask phone() { withLocalProperty("phone"); return this; } public Mask postalCode() { withLocalProperty("postalCode"); return this; } public Mask state() { withLocalProperty("state"); return this; } public Mask type() { withLocalProperty("type"); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy