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

com.softlayer.api.service.exception.brand.Creation Maven / Gradle / Ivy

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

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

/**
 * Throw this exception if there are validation errors. The types are specified in SoftLayer_Brand_Creation_Input including: KEY_NAME, PREFIX, NAME, LONG_NAME, SUPPORT_POLICY, POLICY_ACKNOWLEDGEMENT_FLAG, etc. 
 *
 * @see SoftLayer_Exception_Brand_Creation
 */
@ApiType("SoftLayer_Exception_Brand_Creation")
public class Creation extends Entity {

    @ApiProperty(canBeNullOrNotSet = true)
    protected String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        messageSpecified = true;
        this.message = message;
    }

    protected boolean messageSpecified;

    public boolean isMessageSpecified() {
        return messageSpecified;
    }

    public void unsetMessage() {
        message = null;
        messageSpecified = false;
    }

    @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 Service service(ApiClient client) {
        return client.createService(Service.class, null);
    }

    /**
     * @see SoftLayer_Exception_Brand_Creation
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Exception_Brand_Creation")
    public static interface Service extends com.softlayer.api.Service {

        public ServiceAsync asAsync();
        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

    }

    public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {

        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

    }

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy