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

com.softlayer.api.service.locale.StateProvince Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.locale;

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

/**
 * This object represents a state or province for a country. 
 *
 * @see SoftLayer_Locale_StateProvince
 */
@ApiType("SoftLayer_Locale_StateProvince")
public class StateProvince extends Entity {

    @ApiProperty(canBeNullOrNotSet = true)
    protected String longName;

    public String getLongName() {
        return longName;
    }

    public void setLongName(String longName) {
        longNameSpecified = true;
        this.longName = longName;
    }

    protected boolean longNameSpecified;

    public boolean isLongNameSpecified() {
        return longNameSpecified;
    }

    public void unsetLongName() {
        longName = null;
        longNameSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String shortName;

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        shortNameSpecified = true;
        this.shortName = shortName;
    }

    protected boolean shortNameSpecified;

    public boolean isShortNameSpecified() {
        return shortNameSpecified;
    }

    public void unsetShortName() {
        shortName = null;
        shortNameSpecified = false;
    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

        public Mask longName() {
            withLocalProperty("longName");
            return this;
        }

        public Mask shortName() {
            withLocalProperty("shortName");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy