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

com.softlayer.api.service.container.collection.locale.CountryCode Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.container.collection.locale;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.container.collection.locale.StateCode;
import java.util.ArrayList;
import java.util.List;

/**
 * This container is used to hold country locale information. 
 *
 * @see SoftLayer_Container_Collection_Locale_CountryCode
 */
@ApiType("SoftLayer_Container_Collection_Locale_CountryCode")
public class CountryCode 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;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected List stateCodes;

    public List getStateCodes() {
        if (stateCodes == null) {
            stateCodes = new ArrayList();
        }
        return stateCodes;
    }

    protected boolean stateCodesSpecified;

    public boolean isStateCodesSpecified() {
        return stateCodesSpecified;
    }

    public void unsetStateCodes() {
        stateCodes = null;
        stateCodesSpecified = 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;
        }

        public StateCode.Mask stateCodes() {
            return withSubMask("stateCodes", StateCode.Mask.class);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy