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

com.softlayer.api.service.auxiliary.shipping.Courier Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.auxiliary.shipping;

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

/**
 * The SoftLayer_Auxiliary_Shipping_Courier data type contains general information relating the different (major) couriers that SoftLayer may use for shipping. 
 *
 * @see SoftLayer_Auxiliary_Shipping_Courier
 */
@ApiType("SoftLayer_Auxiliary_Shipping_Courier")
public class Courier extends Entity {

    /**
     * The unique id of the shipping courier.
     */
    @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;
    }

    /**
     * The unique keyname of the shipping courier.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String keyName;

    public String getKeyName() {
        return keyName;
    }

    public void setKeyName(String keyName) {
        keyNameSpecified = true;
        this.keyName = keyName;
    }

    protected boolean keyNameSpecified;

    public boolean isKeyNameSpecified() {
        return keyNameSpecified;
    }

    public void unsetKeyName() {
        keyName = null;
        keyNameSpecified = false;
    }

    /**
     * The name of the shipping courier.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        nameSpecified = true;
        this.name = name;
    }

    protected boolean nameSpecified;

    public boolean isNameSpecified() {
        return nameSpecified;
    }

    public void unsetName() {
        name = null;
        nameSpecified = false;
    }

    /**
     * The url to shipping courier's website.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String url;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        urlSpecified = true;
        this.url = url;
    }

    protected boolean urlSpecified;

    public boolean isUrlSpecified() {
        return urlSpecified;
    }

    public void unsetUrl() {
        url = null;
        urlSpecified = false;
    }

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy