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

com.softlayer.api.service.virtual.disk.image.Software Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.virtual.disk.image;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.software.Description;
import com.softlayer.api.service.virtual.disk.Image;
import com.softlayer.api.service.virtual.disk.image.software.Password;
import java.util.ArrayList;
import java.util.List;

/**
 * A SoftLayer_Virtual_Disk_Image_Software record connects a computing instance's virtual disk images with software records. This can be useful if a disk image is directly associated with software such as operating systems. 
 *
 * @see SoftLayer_Virtual_Disk_Image_Software
 */
@ApiType("SoftLayer_Virtual_Disk_Image_Software")
public class Software extends Entity {

    /**
     * The virtual disk image that is associated with software.
     */
    @ApiProperty
    protected Image diskImage;

    public Image getDiskImage() {
        return diskImage;
    }

    public void setDiskImage(Image diskImage) {
        this.diskImage = diskImage;
    }

    /**
     * Username/Password pairs used for access to a Software Installation.
     */
    @ApiProperty
    protected List passwords;

    public List getPasswords() {
        if (passwords == null) {
            passwords = new ArrayList();
        }
        return passwords;
    }

    /**
     * The software associated with a virtual disk image.
     */
    @ApiProperty
    protected Description softwareDescription;

    public Description getSoftwareDescription() {
        return softwareDescription;
    }

    public void setSoftwareDescription(Description softwareDescription) {
        this.softwareDescription = softwareDescription;
    }

    /**
     * The unique identifier of a virtual disk image to software relationship. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        idSpecified = true;
        this.id = id;
    }

    protected boolean idSpecified;

    public boolean isIdSpecified() {
        return idSpecified;
    }

    public void unsetId() {
        id = null;
        idSpecified = false;
    }

    /**
     * The unique identifier of the software that a virtual disk image is associated with. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long softwareDescriptionId;

    public Long getSoftwareDescriptionId() {
        return softwareDescriptionId;
    }

    public void setSoftwareDescriptionId(Long softwareDescriptionId) {
        softwareDescriptionIdSpecified = true;
        this.softwareDescriptionId = softwareDescriptionId;
    }

    protected boolean softwareDescriptionIdSpecified;

    public boolean isSoftwareDescriptionIdSpecified() {
        return softwareDescriptionIdSpecified;
    }

    public void unsetSoftwareDescriptionId() {
        softwareDescriptionId = null;
        softwareDescriptionIdSpecified = false;
    }

    /**
     * A count of username/Password pairs used for access to a Software Installation.
     */
    @ApiProperty
    protected Long passwordCount;

    public Long getPasswordCount() {
        return passwordCount;
    }

    public void setPasswordCount(Long passwordCount) {
        this.passwordCount = passwordCount;
    }

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

        public com.softlayer.api.service.virtual.disk.Image.Mask diskImage() {
            return withSubMask("diskImage", com.softlayer.api.service.virtual.disk.Image.Mask.class);
        }

        public com.softlayer.api.service.virtual.disk.image.software.Password.Mask passwords() {
            return withSubMask("passwords", com.softlayer.api.service.virtual.disk.image.software.Password.Mask.class);
        }

        public com.softlayer.api.service.software.Description.Mask softwareDescription() {
            return withSubMask("softwareDescription", com.softlayer.api.service.software.Description.Mask.class);
        }

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy