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

com.softlayer.api.service.hardware.component.partition.template.Partition Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.hardware.component.partition.template;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.configuration.storage.filesystem.Type;
import com.softlayer.api.service.hardware.component.partition.Template;
import java.math.BigDecimal;

/**
 * The SoftLayer_Hardware_Component_Partition_Template_Partition data type contains general information relating to a single SoftLayer Template Partition. 
 *
 * @see SoftLayer_Hardware_Component_Partition_Template_Partition
 */
@ApiType("SoftLayer_Hardware_Component_Partition_Template_Partition")
public class Partition extends Entity {

    /**
     * The filesystem type of a partition
     */
    @ApiProperty
    protected Type filesystemType;

    public Type getFilesystemType() {
        return filesystemType;
    }

    public void setFilesystemType(Type filesystemType) {
        this.filesystemType = filesystemType;
    }

    /**
     * A partition's [[SoftLayer_Hardware_Component_Partition_Template|Partition Template]].
     */
    @ApiProperty
    protected Template partitionTemplate;

    public Template getPartitionTemplate() {
        return partitionTemplate;
    }

    public void setPartitionTemplate(Template partitionTemplate) {
        this.partitionTemplate = partitionTemplate;
    }

    /**
     * A partition's id.
     */
    @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;
    }

    /**
     * A flag indication if a partition will be the grow partition.  The grow partition will have its size adjusted to fill all available space on a hard drive. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Boolean isGrow;

    public Boolean getIsGrow() {
        return isGrow;
    }

    public void setIsGrow(Boolean isGrow) {
        isGrowSpecified = true;
        this.isGrow = isGrow;
    }

    protected boolean isGrowSpecified;

    public boolean isIsGrowSpecified() {
        return isGrowSpecified;
    }

    public void unsetIsGrow() {
        isGrow = null;
        isGrowSpecified = false;
    }

    /**
     * A partition's default name.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String partitionName;

    public String getPartitionName() {
        return partitionName;
    }

    public void setPartitionName(String partitionName) {
        partitionNameSpecified = true;
        this.partitionName = partitionName;
    }

    protected boolean partitionNameSpecified;

    public boolean isPartitionNameSpecified() {
        return partitionNameSpecified;
    }

    public void unsetPartitionName() {
        partitionName = null;
        partitionNameSpecified = false;
    }

    /**
     * A partition's default size.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected BigDecimal partitionSize;

    public BigDecimal getPartitionSize() {
        return partitionSize;
    }

    public void setPartitionSize(BigDecimal partitionSize) {
        partitionSizeSpecified = true;
        this.partitionSize = partitionSize;
    }

    protected boolean partitionSizeSpecified;

    public boolean isPartitionSizeSpecified() {
        return partitionSizeSpecified;
    }

    public void unsetPartitionSize() {
        partitionSize = null;
        partitionSizeSpecified = false;
    }

    /**
     * A partition's associated [[SoftLayer_Hardware_Component_Partition_Template|Partition Template]] Id.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long partitionTemplateId;

    public Long getPartitionTemplateId() {
        return partitionTemplateId;
    }

    public void setPartitionTemplateId(Long partitionTemplateId) {
        partitionTemplateIdSpecified = true;
        this.partitionTemplateId = partitionTemplateId;
    }

    protected boolean partitionTemplateIdSpecified;

    public boolean isPartitionTemplateIdSpecified() {
        return partitionTemplateIdSpecified;
    }

    public void unsetPartitionTemplateId() {
        partitionTemplateId = null;
        partitionTemplateIdSpecified = false;
    }

    /**
     * The volume the partition will be put on
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long volumeNumber;

    public Long getVolumeNumber() {
        return volumeNumber;
    }

    public void setVolumeNumber(Long volumeNumber) {
        volumeNumberSpecified = true;
        this.volumeNumber = volumeNumber;
    }

    protected boolean volumeNumberSpecified;

    public boolean isVolumeNumberSpecified() {
        return volumeNumberSpecified;
    }

    public void unsetVolumeNumber() {
        volumeNumber = null;
        volumeNumberSpecified = false;
    }

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

        public com.softlayer.api.service.configuration.storage.filesystem.Type.Mask filesystemType() {
            return withSubMask("filesystemType", com.softlayer.api.service.configuration.storage.filesystem.Type.Mask.class);
        }

        public com.softlayer.api.service.hardware.component.partition.Template.Mask partitionTemplate() {
            return withSubMask("partitionTemplate", com.softlayer.api.service.hardware.component.partition.Template.Mask.class);
        }

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy