Class File
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.ticket.attachment.File
-
- Direct Known Subclasses:
ServiceNow
@ApiType("SoftLayer_Ticket_Attachment_File") public class File extends Entity
SoftLayer tickets can have have files attached to them. Attaching a file to a ticket is a good way to report issues, provide documentation, and give examples of an issue. Both SoftLayer customers and employees have the ability to attach files to a ticket. The SoftLayer_Ticket_Attachment_File data type models a single file attached to a ticket.- See Also:
- SoftLayer_Ticket_Attachment_File
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
File.Mask
static interface
File.Service
static interface
File.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected GregorianCalendar
createDate
The date a file was originally attached to a ticket.protected boolean
createDateSpecified
protected String
fileName
The name of a file attached to a ticket.protected boolean
fileNameSpecified
protected String
fileSize
The size of a file attached to a ticket, measured in bytes.protected boolean
fileSizeSpecified
protected Long
id
A ticket file attachment's internal identifier.protected boolean
idSpecified
protected GregorianCalendar
modifyDate
The date that a file attachment record was last modified.protected boolean
modifyDateSpecified
protected Ticket
ticket
protected Long
ticketId
The internal identifier of the ticket that a file is attached to.protected boolean
ticketIdSpecified
protected Update
update
The ticket that a file is attached to.protected Long
updateId
The internal identifier of the ticket update the attached file is associated with.protected boolean
updateIdSpecified
protected String
uploaderId
The internal identifier of the user that uploaded a ticket file attachment.protected boolean
uploaderIdSpecified
protected String
uploaderType
The type of user that attached a file to a ticket.protected boolean
uploaderTypeSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description File()
-
Method Summary
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
ticket
@ApiProperty protected Ticket ticket
-
update
@ApiProperty protected Update update
The ticket that a file is attached to.
-
createDate
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar createDate
The date a file was originally attached to a ticket.
-
createDateSpecified
protected boolean createDateSpecified
-
fileName
@ApiProperty(canBeNullOrNotSet=true) protected String fileName
The name of a file attached to a ticket.
-
fileNameSpecified
protected boolean fileNameSpecified
-
fileSize
@ApiProperty(canBeNullOrNotSet=true) protected String fileSize
The size of a file attached to a ticket, measured in bytes.
-
fileSizeSpecified
protected boolean fileSizeSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
A ticket file attachment's internal identifier.
-
idSpecified
protected boolean idSpecified
-
modifyDate
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar modifyDate
The date that a file attachment record was last modified.
-
modifyDateSpecified
protected boolean modifyDateSpecified
-
ticketId
@ApiProperty(canBeNullOrNotSet=true) protected Long ticketId
The internal identifier of the ticket that a file is attached to.
-
ticketIdSpecified
protected boolean ticketIdSpecified
-
updateId
@ApiProperty(canBeNullOrNotSet=true) protected Long updateId
The internal identifier of the ticket update the attached file is associated with.
-
updateIdSpecified
protected boolean updateIdSpecified
-
uploaderId
@ApiProperty(canBeNullOrNotSet=true) protected String uploaderId
The internal identifier of the user that uploaded a ticket file attachment. This is only used when A file attachment's ''uploaderType'' is set to "USER".
-
uploaderIdSpecified
protected boolean uploaderIdSpecified
-
uploaderType
@ApiProperty(canBeNullOrNotSet=true) protected String uploaderType
The type of user that attached a file to a ticket. This is either "USER" if the file was uploaded by a portal or API user or "EMPLOYEE" if the file was uploaded by a SoftLayer employee.
-
uploaderTypeSpecified
protected boolean uploaderTypeSpecified
-
-
Method Detail
-
getTicket
public Ticket getTicket()
-
setTicket
public void setTicket(Ticket ticket)
-
getUpdate
public Update getUpdate()
-
setUpdate
public void setUpdate(Update update)
-
getCreateDate
public GregorianCalendar getCreateDate()
-
setCreateDate
public void setCreateDate(GregorianCalendar createDate)
-
isCreateDateSpecified
public boolean isCreateDateSpecified()
-
unsetCreateDate
public void unsetCreateDate()
-
getFileName
public String getFileName()
-
setFileName
public void setFileName(String fileName)
-
isFileNameSpecified
public boolean isFileNameSpecified()
-
unsetFileName
public void unsetFileName()
-
getFileSize
public String getFileSize()
-
setFileSize
public void setFileSize(String fileSize)
-
isFileSizeSpecified
public boolean isFileSizeSpecified()
-
unsetFileSize
public void unsetFileSize()
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getModifyDate
public GregorianCalendar getModifyDate()
-
setModifyDate
public void setModifyDate(GregorianCalendar modifyDate)
-
isModifyDateSpecified
public boolean isModifyDateSpecified()
-
unsetModifyDate
public void unsetModifyDate()
-
getTicketId
public Long getTicketId()
-
setTicketId
public void setTicketId(Long ticketId)
-
isTicketIdSpecified
public boolean isTicketIdSpecified()
-
unsetTicketId
public void unsetTicketId()
-
getUpdateId
public Long getUpdateId()
-
setUpdateId
public void setUpdateId(Long updateId)
-
isUpdateIdSpecified
public boolean isUpdateIdSpecified()
-
unsetUpdateId
public void unsetUpdateId()
-
getUploaderId
public String getUploaderId()
-
setUploaderId
public void setUploaderId(String uploaderId)
-
isUploaderIdSpecified
public boolean isUploaderIdSpecified()
-
unsetUploaderId
public void unsetUploaderId()
-
getUploaderType
public String getUploaderType()
-
setUploaderType
public void setUploaderType(String uploaderType)
-
isUploaderTypeSpecified
public boolean isUploaderTypeSpecified()
-
unsetUploaderType
public void unsetUploaderType()
-
asService
public File.Service asService(ApiClient client)
-
service
public static File.Service service(ApiClient client)
-
service
public static File.Service service(ApiClient client, Long id)
-
-