All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.softlayer.api.service.container.virtual.guest.Configuration Maven / Gradle / Ivy
package com.softlayer.api.service.container.virtual.guest;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.container.virtual.guest.configuration.Option;
import java.util.ArrayList;
import java.util.List;
/**
* The guest configuration container is used to provide configuration options for creating computing instances.
*
* Each configuration option will include both an itemPrice
and a template
.
*
* The itemPrice
value will provide hourly and monthly costs (if either are applicable), and a description of the option.
*
* The template
will provide a fragment of the request with the properties and values that must be sent when creating a computing instance with the option.
*
* The [[SoftLayer_Virtual_Guest/getCreateObjectOptions|getCreateObjectOptions]] method returns this data structure.
*
*
*
* @see SoftLayer_Container_Virtual_Guest_Configuration
*/
@ApiType("SoftLayer_Container_Virtual_Guest_Configuration")
public class Configuration extends Entity {
/**
*
*
* Available block device options.
*
*
* A computing instance will have at least one block device represented by a device
number of '0'
.
*
*
* The blockDevices.device
value in the template represents which device the option is for.
* The blockDevices.diskImage.capacity
value in the template represents the size, in gigabytes, of the disk.
* The localDiskFlag
value in the template represents whether the option is a local or SAN based disk.
*
*
* Note: The block device number '1'
is reserved for the SWAP disk attached to the computing instance.
*
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List blockDevices;
public List getBlockDevices() {
if (blockDevices == null) {
blockDevices = new ArrayList ();
}
return blockDevices;
}
protected boolean blockDevicesSpecified;
public boolean isBlockDevicesSpecified() {
return blockDevicesSpecified;
}
public void unsetBlockDevices() {
blockDevices = null;
blockDevicesSpecified = false;
}
/**
*
*
* Available datacenter options.
*
*
* The datacenter.name
value in the template represents which datacenter the computing instance will be provisioned in.
*
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List datacenters;
public List getDatacenters() {
if (datacenters == null) {
datacenters = new ArrayList ();
}
return datacenters;
}
protected boolean datacentersSpecified;
public boolean isDatacentersSpecified() {
return datacentersSpecified;
}
public void unsetDatacenters() {
datacenters = null;
datacentersSpecified = false;
}
/**
*
*
*
*
* Available flavor options.
*
*
* The supplementalCreateObjectOptions.flavorKeyName
value in the template is an identifier for a particular core, ram, and primary disk configuration.
*
*
* When providing a supplementalCreateObjectOptions.flavorKeyName
option the core, ram, and primary disk options are not needed. If those options are provided they are validated against the flavor.
*
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List flavors;
public List getFlavors() {
if (flavors == null) {
flavors = new ArrayList ();
}
return flavors;
}
protected boolean flavorsSpecified;
public boolean isFlavorsSpecified() {
return flavorsSpecified;
}
public void unsetFlavors() {
flavors = null;
flavorsSpecified = false;
}
/**
*
*
* Available memory options.
*
*
* The maxMemory
value in the template represents the amount of memory, in megabytes, allocated to the computing instance.
*
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List memory;
public List getMemory() {
if (memory == null) {
memory = new ArrayList ();
}
return memory;
}
protected boolean memorySpecified;
public boolean isMemorySpecified() {
return memorySpecified;
}
public void unsetMemory() {
memory = null;
memorySpecified = false;
}
/**
*
*
* Available network component options.
*
*
* The networkComponent.maxSpeed
value in the template represents the link speed, in megabits per second, of the network connections for a computing instance.
*
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List networkComponents;
public List getNetworkComponents() {
if (networkComponents == null) {
networkComponents = new ArrayList ();
}
return networkComponents;
}
protected boolean networkComponentsSpecified;
public boolean isNetworkComponentsSpecified() {
return networkComponentsSpecified;
}
public void unsetNetworkComponents() {
networkComponents = null;
networkComponentsSpecified = false;
}
/**
*
*
* Available operating system options.
*
*
* The operatingSystemReferenceCode
value in the template is an identifier for a particular operating system. When provided exactly as shown in the template, that operating system will be used.
*
*
* A reference code is structured as three tokens separated by underscores. The first token represents the product, the second is the version of the product, and the third is whether the OS is 32 or 64bit.
*
*
* When providing an operatingSystemReferenceCode
while ordering a computing instance the only token required to match exactly is the product. The version token may be given as 'LATEST', else it will require an exact match as well. When the bits token is not provided, 64 bits will be assumed.
*
*
* Providing the value of 'LATEST' for a version will select the latest release of that product for the operating system. As this may change over time, you should be sure that the release version is irrelevant for your applications.
*
*
* For Windows based operating systems the version will represent both the release version (2008, 2012, etc) and the edition (Standard, Enterprise, etc). For all other operating systems the version will represent the major version (Centos 6, Ubuntu 12, etc) of that operating system, minor versions are not represented in a reference code.
*
*
* Notice - Some operating systems are charged based on the value specified in startCpus
. The price which is used can be determined by calling [[SoftLayer_Virtual_Guest/generateOrderTemplate|generateOrderTemplate]] with your desired device specifications.
*
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List operatingSystems;
public List getOperatingSystems() {
if (operatingSystems == null) {
operatingSystems = new ArrayList ();
}
return operatingSystems;
}
protected boolean operatingSystemsSpecified;
public boolean isOperatingSystemsSpecified() {
return operatingSystemsSpecified;
}
public void unsetOperatingSystems() {
operatingSystems = null;
operatingSystemsSpecified = false;
}
/**
*
*
* Available processor options.
*
*
* The startCpus
value in the template represents the number of cores allocated to the computing instance.
* The dedicatedAccountHostOnlyFlag
value in the template represents whether the instance will run on hosts with instances belonging to other accounts.
*
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List processors;
public List getProcessors() {
if (processors == null) {
processors = new ArrayList ();
}
return processors;
}
protected boolean processorsSpecified;
public boolean isProcessorsSpecified() {
return processorsSpecified;
}
public void unsetProcessors() {
processors = null;
processorsSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask blockDevices() {
return withSubMask("blockDevices", com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask.class);
}
public com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask datacenters() {
return withSubMask("datacenters", com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask.class);
}
public com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask flavors() {
return withSubMask("flavors", com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask.class);
}
public com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask memory() {
return withSubMask("memory", com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask.class);
}
public com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask networkComponents() {
return withSubMask("networkComponents", com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask.class);
}
public com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask operatingSystems() {
return withSubMask("operatingSystems", com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask.class);
}
public com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask processors() {
return withSubMask("processors", com.softlayer.api.service.container.virtual.guest.configuration.Option.Mask.class);
}
}
}