Class Attachment
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.notification.occurrence.event.Attachment
-
@ApiType("SoftLayer_Notification_Occurrence_Event_Attachment") public class Attachment extends Entity
SoftLayer events can have have files attached to them by a SoftLayer employee. Attaching a file to a event is a way to provide supplementary information such as a RFO (reason for outage) document or root cause analysis. The SoftLayer_Notification_Occurrence_Event_Attachment data type models a single file attached to a event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Attachment.Mask
-
Field Summary
Fields Modifier and Type Field Description protected GregorianCalendar
createDate
The date the file was attached to the event.protected boolean
createDateSpecified
protected String
fileName
The name of the file attached to the event.protected boolean
fileNameSpecified
protected String
fileSize
The size of the file, measured in bytes.protected boolean
fileSizeSpecified
protected Long
id
A event attachments' unique identifier.protected boolean
idSpecified
protected Event
notificationOccurrenceEvent
protected Long
notificationOccurrenceEventId
The unique event identifier that the file is attached to.protected boolean
notificationOccurrenceEventIdSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Attachment()
-
Method Summary
Modifier and Type Method Description GregorianCalendar
getCreateDate()
String
getFileName()
String
getFileSize()
Long
getId()
Event
getNotificationOccurrenceEvent()
Long
getNotificationOccurrenceEventId()
boolean
isCreateDateSpecified()
boolean
isFileNameSpecified()
boolean
isFileSizeSpecified()
boolean
isIdSpecified()
boolean
isNotificationOccurrenceEventIdSpecified()
void
setCreateDate(GregorianCalendar createDate)
void
setFileName(String fileName)
void
setFileSize(String fileSize)
void
setId(Long id)
void
setNotificationOccurrenceEvent(Event notificationOccurrenceEvent)
void
setNotificationOccurrenceEventId(Long notificationOccurrenceEventId)
void
unsetCreateDate()
void
unsetFileName()
void
unsetFileSize()
void
unsetId()
void
unsetNotificationOccurrenceEventId()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
notificationOccurrenceEvent
@ApiProperty protected Event notificationOccurrenceEvent
-
createDate
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar createDate
The date the file was attached to the event.
-
createDateSpecified
protected boolean createDateSpecified
-
fileName
@ApiProperty(canBeNullOrNotSet=true) protected String fileName
The name of the file attached to the event.
-
fileNameSpecified
protected boolean fileNameSpecified
-
fileSize
@ApiProperty(canBeNullOrNotSet=true) protected String fileSize
The size of the file, measured in bytes.
-
fileSizeSpecified
protected boolean fileSizeSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
A event attachments' unique identifier.
-
idSpecified
protected boolean idSpecified
-
notificationOccurrenceEventId
@ApiProperty(canBeNullOrNotSet=true) protected Long notificationOccurrenceEventId
The unique event identifier that the file is attached to.
-
notificationOccurrenceEventIdSpecified
protected boolean notificationOccurrenceEventIdSpecified
-
-
Method Detail
-
getNotificationOccurrenceEvent
public Event getNotificationOccurrenceEvent()
-
setNotificationOccurrenceEvent
public void setNotificationOccurrenceEvent(Event notificationOccurrenceEvent)
-
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()
-
getNotificationOccurrenceEventId
public Long getNotificationOccurrenceEventId()
-
setNotificationOccurrenceEventId
public void setNotificationOccurrenceEventId(Long notificationOccurrenceEventId)
-
isNotificationOccurrenceEventIdSpecified
public boolean isNotificationOccurrenceEventIdSpecified()
-
unsetNotificationOccurrenceEventId
public void unsetNotificationOccurrenceEventId()
-
-