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

com.softlayer.api.service.ticket.Update Maven / Gradle / Ivy

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

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Ticket;
import com.softlayer.api.service.ticket.attachment.File;
import com.softlayer.api.service.ticket.update.Type;
import com.softlayer.api.service.user.Interface;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;

/**
 * The SoftLayer_Ticket_Update type relates to a single update to a ticket, either by a customer or an employee. 
 *
 * @see SoftLayer_Ticket_Update
 */
@ApiType("SoftLayer_Ticket_Update")
public class Update extends Entity {

    @ApiProperty
    protected String changeOwnerActivity;

    public String getChangeOwnerActivity() {
        return changeOwnerActivity;
    }

    public void setChangeOwnerActivity(String changeOwnerActivity) {
        this.changeOwnerActivity = changeOwnerActivity;
    }

    /**
     * The user or SoftLayer employee who created a ticket update.
     */
    @ApiProperty
    protected Interface editor;

    public Interface getEditor() {
        return editor;
    }

    public void setEditor(Interface editor) {
        this.editor = editor;
    }

    /**
     * The files attached to a ticket update.
     */
    @ApiProperty
    protected List fileAttachment;

    public List getFileAttachment() {
        if (fileAttachment == null) {
            fileAttachment = new ArrayList();
        }
        return fileAttachment;
    }

    /**
     * The ticket that a ticket update belongs to.
     */
    @ApiProperty
    protected Ticket ticket;

    public Ticket getTicket() {
        return ticket;
    }

    public void setTicket(Ticket ticket) {
        this.ticket = ticket;
    }

    /**
     * The Type of update to this ticket
     */
    @ApiProperty
    protected Type type;

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    /**
     * The data a ticket update was created.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar createDate;

    public GregorianCalendar getCreateDate() {
        return createDate;
    }

    public void setCreateDate(GregorianCalendar createDate) {
        createDateSpecified = true;
        this.createDate = createDate;
    }

    protected boolean createDateSpecified;

    public boolean isCreateDateSpecified() {
        return createDateSpecified;
    }

    public void unsetCreateDate() {
        createDate = null;
        createDateSpecified = false;
    }

    /**
     * The internal identifier of the SoftLayer portal or API user who created a ticket update. This is only used if a ticket update's ''editorType'' property is "USER". 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long editorId;

    public Long getEditorId() {
        return editorId;
    }

    public void setEditorId(Long editorId) {
        editorIdSpecified = true;
        this.editorId = editorId;
    }

    protected boolean editorIdSpecified;

    public boolean isEditorIdSpecified() {
        return editorIdSpecified;
    }

    public void unsetEditorId() {
        editorId = null;
        editorIdSpecified = false;
    }

    /**
     * The type user who created a ticket update. This is either "USER" for an update created by a SoftLayer portal or API user, "EMPLOYEE" for an update created by a SoftLayer employee, or "AUTO" if a ticket update was generated automatically by SoftLayer's backend systems. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String editorType;

    public String getEditorType() {
        return editorType;
    }

    public void setEditorType(String editorType) {
        editorTypeSpecified = true;
        this.editorType = editorType;
    }

    protected boolean editorTypeSpecified;

    public boolean isEditorTypeSpecified() {
        return editorTypeSpecified;
    }

    public void unsetEditorType() {
        editorType = null;
        editorTypeSpecified = false;
    }

    /**
     * The contents of a ticket update.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String entry;

    public String getEntry() {
        return entry;
    }

    public void setEntry(String entry) {
        entrySpecified = true;
        this.entry = entry;
    }

    protected boolean entrySpecified;

    public boolean isEntrySpecified() {
        return entrySpecified;
    }

    public void unsetEntry() {
        entry = null;
        entrySpecified = false;
    }

    /**
     * A ticket update's internal identifier.
     */
    @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 internal identifier of the ticket that a ticket update belongs to.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long ticketId;

    public Long getTicketId() {
        return ticketId;
    }

    public void setTicketId(Long ticketId) {
        ticketIdSpecified = true;
        this.ticketId = ticketId;
    }

    protected boolean ticketIdSpecified;

    public boolean isTicketIdSpecified() {
        return ticketIdSpecified;
    }

    public void unsetTicketId() {
        ticketId = null;
        ticketIdSpecified = false;
    }

    /**
     * A count of the files attached to a ticket update.
     */
    @ApiProperty
    protected Long fileAttachmentCount;

    public Long getFileAttachmentCount() {
        return fileAttachmentCount;
    }

    public void setFileAttachmentCount(Long fileAttachmentCount) {
        this.fileAttachmentCount = fileAttachmentCount;
    }

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

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

        public com.softlayer.api.service.user.Interface.Mask editor() {
            return withSubMask("editor", com.softlayer.api.service.user.Interface.Mask.class);
        }

        public com.softlayer.api.service.ticket.attachment.File.Mask fileAttachment() {
            return withSubMask("fileAttachment", com.softlayer.api.service.ticket.attachment.File.Mask.class);
        }

        public com.softlayer.api.service.Ticket.Mask ticket() {
            return withSubMask("ticket", com.softlayer.api.service.Ticket.Mask.class);
        }

        public com.softlayer.api.service.ticket.update.Type.Mask type() {
            return withSubMask("type", com.softlayer.api.service.ticket.update.Type.Mask.class);
        }

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

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy