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

com.softlayer.api.service.container.virtual.guest.configuration.Option Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.container.virtual.guest.configuration;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.product.item.Price;
import com.softlayer.api.service.product.pkg.Preset;
import com.softlayer.api.service.virtual.Guest;

/**
 * An option found within a [[SoftLayer_Container_Virtual_Guest_Configuration (type)]] structure. 
 *
 * @see SoftLayer_Container_Virtual_Guest_Configuration_Option
 */
@ApiType("SoftLayer_Container_Virtual_Guest_Configuration_Option")
public class Option extends Entity {

    /**
     * 
* Provides a description of a pre-defined configuration with monthly and hourly costs. */ @ApiProperty(canBeNullOrNotSet = true) protected Preset flavor; public Preset getFlavor() { return flavor; } public void setFlavor(Preset flavor) { flavorSpecified = true; this.flavor = flavor; } protected boolean flavorSpecified; public boolean isFlavorSpecified() { return flavorSpecified; } public void unsetFlavor() { flavor = null; flavorSpecified = false; } /** *
* Provides hourly and monthly costs (if either are applicable), and a description of the option. */ @ApiProperty(canBeNullOrNotSet = true) protected Price itemPrice; public Price getItemPrice() { return itemPrice; } public void setItemPrice(Price itemPrice) { itemPriceSpecified = true; this.itemPrice = itemPrice; } protected boolean itemPriceSpecified; public boolean isItemPriceSpecified() { return itemPriceSpecified; } public void unsetItemPrice() { itemPrice = null; itemPriceSpecified = false; } /** *
* Provides a fragment of the request with the properties and values that must be sent when creating a computing instance with the option. */ @ApiProperty(canBeNullOrNotSet = true) protected Guest template; public Guest getTemplate() { return template; } public void setTemplate(Guest template) { templateSpecified = true; this.template = template; } protected boolean templateSpecified; public boolean isTemplateSpecified() { return templateSpecified; } public void unsetTemplate() { template = null; templateSpecified = false; } public static class Mask extends com.softlayer.api.service.Entity.Mask { public com.softlayer.api.service.product.pkg.Preset.Mask flavor() { return withSubMask("flavor", com.softlayer.api.service.product.pkg.Preset.Mask.class); } public com.softlayer.api.service.product.item.Price.Mask itemPrice() { return withSubMask("itemPrice", com.softlayer.api.service.product.item.Price.Mask.class); } public com.softlayer.api.service.virtual.Guest.Mask template() { return withSubMask("template", com.softlayer.api.service.virtual.Guest.Mask.class); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy