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

com.softlayer.api.service.container.utility.file.Descriptor Maven / Gradle / Ivy

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import java.util.GregorianCalendar;

/**
 * Used to describe a document in the file system on the file server 
 *
 * @see SoftLayer_Container_Utility_File_Descriptor
 */
@ApiType("SoftLayer_Container_Utility_File_Descriptor")
public class Descriptor extends Entity {

    /**
     * The name of a file as it exists on the file server.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String fileName;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        fileNameSpecified = true;
        this.fileName = fileName;
    }

    protected boolean fileNameSpecified;

    public boolean isFileNameSpecified() {
        return fileNameSpecified;
    }

    public void unsetFileName() {
        fileName = null;
        fileNameSpecified = false;
    }

    /**
     * The friendly name of a file as it exists on the file server.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String friendlyName;

    public String getFriendlyName() {
        return friendlyName;
    }

    public void setFriendlyName(String friendlyName) {
        friendlyNameSpecified = true;
        this.friendlyName = friendlyName;
    }

    protected boolean friendlyNameSpecified;

    public boolean isFriendlyNameSpecified() {
        return friendlyNameSpecified;
    }

    public void unsetFriendlyName() {
        friendlyName = null;
        friendlyNameSpecified = false;
    }

    /**
     * The date the file was last modified on the file server.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar modifyDate;

    public GregorianCalendar getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(GregorianCalendar modifyDate) {
        modifyDateSpecified = true;
        this.modifyDate = modifyDate;
    }

    protected boolean modifyDateSpecified;

    public boolean isModifyDateSpecified() {
        return modifyDateSpecified;
    }

    public void unsetModifyDate() {
        modifyDate = null;
        modifyDateSpecified = false;
    }

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy