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

com.softlayer.api.service.virtual.guest.SupplementalCreateObjectOptions Maven / Gradle / Ivy

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

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

/**
 * @see SoftLayer_Virtual_Guest_SupplementalCreateObjectOptions
 */
@ApiType("SoftLayer_Virtual_Guest_SupplementalCreateObjectOptions")
public class SupplementalCreateObjectOptions extends Entity {

    /**
     * The mode used to boot the [[SoftLayer_Virtual_Guest]].  Supported values are 'PV' and 'HVM'. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String bootMode;

    public String getBootMode() {
        return bootMode;
    }

    public void setBootMode(String bootMode) {
        bootModeSpecified = true;
        this.bootMode = bootMode;
    }

    protected boolean bootModeSpecified;

    public boolean isBootModeSpecified() {
        return bootModeSpecified;
    }

    public void unsetBootMode() {
        bootMode = null;
        bootModeSpecified = false;
    }

    /**
     * When set the startCpus and maxMemory are defined by the flavor. If the flavor includes local storage blockDevice 0 is also defined by the flavor. When startCpus, maxMemory, or blockDevice 0 are also provided on the template object they are validated against the flavor provided. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String flavorKeyName;

    public String getFlavorKeyName() {
        return flavorKeyName;
    }

    public void setFlavorKeyName(String flavorKeyName) {
        flavorKeyNameSpecified = true;
        this.flavorKeyName = flavorKeyName;
    }

    protected boolean flavorKeyNameSpecified;

    public boolean isFlavorKeyNameSpecified() {
        return flavorKeyNameSpecified;
    }

    public void unsetFlavorKeyName() {
        flavorKeyName = null;
        flavorKeyNameSpecified = false;
    }

    /**
     * When explicitly set to true, createObject(s) will fail unless the order is started automatically. This can be used by automated systems to fail an order that might otherwise require manual approval. For multi-guest orders via [[SoftLayer_Virtual_Guest/createObjects|createObjects]], this value must be the exact same for every item. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Boolean immediateApprovalOnlyFlag;

    public Boolean getImmediateApprovalOnlyFlag() {
        return immediateApprovalOnlyFlag;
    }

    public void setImmediateApprovalOnlyFlag(Boolean immediateApprovalOnlyFlag) {
        immediateApprovalOnlyFlagSpecified = true;
        this.immediateApprovalOnlyFlag = immediateApprovalOnlyFlag;
    }

    protected boolean immediateApprovalOnlyFlagSpecified;

    public boolean isImmediateApprovalOnlyFlagSpecified() {
        return immediateApprovalOnlyFlagSpecified;
    }

    public void unsetImmediateApprovalOnlyFlag() {
        immediateApprovalOnlyFlag = null;
        immediateApprovalOnlyFlagSpecified = false;
    }

    /**
     * URI of the script to be downloaded and executed after installation is complete. This can be different for each virtual guest when multiple are sent to [[SoftLayer_Virtual_Guest/createObjects|createObjects]]. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String postInstallScriptUri;

    public String getPostInstallScriptUri() {
        return postInstallScriptUri;
    }

    public void setPostInstallScriptUri(String postInstallScriptUri) {
        postInstallScriptUriSpecified = true;
        this.postInstallScriptUri = postInstallScriptUri;
    }

    protected boolean postInstallScriptUriSpecified;

    public boolean isPostInstallScriptUriSpecified() {
        return postInstallScriptUriSpecified;
    }

    public void unsetPostInstallScriptUri() {
        postInstallScriptUri = null;
        postInstallScriptUriSpecified = false;
    }

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy