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

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

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.container.hardware.configuration;

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

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

    /**
     * 
* 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 description of a fixed configuration preset with monthly and hourly costs. */ @ApiProperty(canBeNullOrNotSet = true) protected Preset preset; public Preset getPreset() { return preset; } public void setPreset(Preset preset) { presetSpecified = true; this.preset = preset; } protected boolean presetSpecified; public boolean isPresetSpecified() { return presetSpecified; } public void unsetPreset() { preset = null; presetSpecified = false; } /** *
* Provides a fragment of the request with the properties and values that must be sent when creating a server with the option. */ @ApiProperty(canBeNullOrNotSet = true) protected Hardware template; public Hardware getTemplate() { return template; } public void setTemplate(Hardware 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.item.Price.Mask itemPrice() { return withSubMask("itemPrice", com.softlayer.api.service.product.item.Price.Mask.class); } public com.softlayer.api.service.product.pkg.Preset.Mask preset() { return withSubMask("preset", com.softlayer.api.service.product.pkg.Preset.Mask.class); } public com.softlayer.api.service.Hardware.Mask template() { return withSubMask("template", com.softlayer.api.service.Hardware.Mask.class); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy