com.softlayer.api.service.notification.occurrence.event.Attachment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.notification.occurrence.event;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.notification.occurrence.Event;
import java.util.GregorianCalendar;
/**
* 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.
*
* @see SoftLayer_Notification_Occurrence_Event_Attachment
*/
@ApiType("SoftLayer_Notification_Occurrence_Event_Attachment")
public class Attachment extends Entity {
@ApiProperty
protected Event notificationOccurrenceEvent;
public Event getNotificationOccurrenceEvent() {
return notificationOccurrenceEvent;
}
public void setNotificationOccurrenceEvent(Event notificationOccurrenceEvent) {
this.notificationOccurrenceEvent = notificationOccurrenceEvent;
}
/**
* The date the file was attached to the event.
*/
@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 name of the file attached to the event.
*/
@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 size of the file, measured in bytes.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String fileSize;
public String getFileSize() {
return fileSize;
}
public void setFileSize(String fileSize) {
fileSizeSpecified = true;
this.fileSize = fileSize;
}
protected boolean fileSizeSpecified;
public boolean isFileSizeSpecified() {
return fileSizeSpecified;
}
public void unsetFileSize() {
fileSize = null;
fileSizeSpecified = false;
}
/**
* A event attachments' unique 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 unique event identifier that the file is attached to.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long notificationOccurrenceEventId;
public Long getNotificationOccurrenceEventId() {
return notificationOccurrenceEventId;
}
public void setNotificationOccurrenceEventId(Long notificationOccurrenceEventId) {
notificationOccurrenceEventIdSpecified = true;
this.notificationOccurrenceEventId = notificationOccurrenceEventId;
}
protected boolean notificationOccurrenceEventIdSpecified;
public boolean isNotificationOccurrenceEventIdSpecified() {
return notificationOccurrenceEventIdSpecified;
}
public void unsetNotificationOccurrenceEventId() {
notificationOccurrenceEventId = null;
notificationOccurrenceEventIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.notification.occurrence.Event.Mask notificationOccurrenceEvent() {
return withSubMask("notificationOccurrenceEvent", com.softlayer.api.service.notification.occurrence.Event.Mask.class);
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask fileName() {
withLocalProperty("fileName");
return this;
}
public Mask fileSize() {
withLocalProperty("fileSize");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask notificationOccurrenceEventId() {
withLocalProperty("notificationOccurrenceEventId");
return this;
}
}
}