com.softlayer.api.service.virtual.guest.SupplementalCreateObjectOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
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 {
/**
* 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 flavorKeyName() {
withLocalProperty("flavorKeyName");
return this;
}
public Mask immediateApprovalOnlyFlag() {
withLocalProperty("immediateApprovalOnlyFlag");
return this;
}
public Mask postInstallScriptUri() {
withLocalProperty("postInstallScriptUri");
return this;
}
}
}