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

com.softlayer.api.service.container.disk.image.capture.Template Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.container.disk.image.capture;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.container.disk.image.capture.template.Volume;
import java.util.ArrayList;
import java.util.List;

/**
 * @see SoftLayer_Container_Disk_Image_Capture_Template
 */
@ApiType("SoftLayer_Container_Disk_Image_Capture_Template")
public class Template extends Entity {

    @ApiProperty(canBeNullOrNotSet = true)
    protected String description;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        descriptionSpecified = true;
        this.description = description;
    }

    protected boolean descriptionSpecified;

    public boolean isDescriptionSpecified() {
        return descriptionSpecified;
    }

    public void unsetDescription() {
        description = null;
        descriptionSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        nameSpecified = true;
        this.name = name;
    }

    protected boolean nameSpecified;

    public boolean isNameSpecified() {
        return nameSpecified;
    }

    public void unsetName() {
        name = null;
        nameSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String summary;

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        summarySpecified = true;
        this.summary = summary;
    }

    protected boolean summarySpecified;

    public boolean isSummarySpecified() {
        return summarySpecified;
    }

    public void unsetSummary() {
        summary = null;
        summarySpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected List volumes;

    public List getVolumes() {
        if (volumes == null) {
            volumes = new ArrayList();
        }
        return volumes;
    }

    protected boolean volumesSpecified;

    public boolean isVolumesSpecified() {
        return volumesSpecified;
    }

    public void unsetVolumes() {
        volumes = null;
        volumesSpecified = false;
    }

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

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

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

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

        public com.softlayer.api.service.container.disk.image.capture.template.Volume.Mask volumes() {
            return withSubMask("volumes", com.softlayer.api.service.container.disk.image.capture.template.Volume.Mask.class);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy