com.softlayer.api.service.auxiliary.notification.Emergency 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.auxiliary.notification;
import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.auxiliary.notification.emergency.Signature;
import com.softlayer.api.service.auxiliary.notification.emergency.Status;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.concurrent.Future;
/**
* A SoftLayer_Auxiliary_Notification_Emergency data object represents a notification event being broadcast to the SoftLayer customer base. It is used to provide information regarding outages or current known issues.
*
* @see SoftLayer_Auxiliary_Notification_Emergency
*/
@ApiType("SoftLayer_Auxiliary_Notification_Emergency")
public class Emergency extends Entity {
/**
* The signature of the SoftLayer employee department associated with this notification.
*/
@ApiProperty
protected Signature signature;
public Signature getSignature() {
return signature;
}
public void setSignature(Signature signature) {
this.signature = signature;
}
/**
* The status of this notification.
*/
@ApiProperty
protected Status status;
public Status getStatus() {
return status;
}
public void setStatus(Status status) {
this.status = status;
}
/**
* The date this event 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 device (if any) effected by this event.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String device;
public String getDevice() {
return device;
}
public void setDevice(String device) {
deviceSpecified = true;
this.device = device;
}
protected boolean deviceSpecified;
public boolean isDeviceSpecified() {
return deviceSpecified;
}
public void unsetDevice() {
device = null;
deviceSpecified = false;
}
/**
* The duration of this event.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String duration;
public String getDuration() {
return duration;
}
public void setDuration(String duration) {
durationSpecified = true;
this.duration = duration;
}
protected boolean durationSpecified;
public boolean isDurationSpecified() {
return durationSpecified;
}
public void unsetDuration() {
duration = null;
durationSpecified = false;
}
/**
* The device (if any) effected by this event.
*/
@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 location effected by this event.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String location;
public String getLocation() {
return location;
}
public void setLocation(String location) {
locationSpecified = true;
this.location = location;
}
protected boolean locationSpecified;
public boolean isLocationSpecified() {
return locationSpecified;
}
public void unsetLocation() {
location = null;
locationSpecified = false;
}
/**
* A message describing this event.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String message;
public String getMessage() {
return message;
}
public void setMessage(String message) {
messageSpecified = true;
this.message = message;
}
protected boolean messageSpecified;
public boolean isMessageSpecified() {
return messageSpecified;
}
public void unsetMessage() {
message = null;
messageSpecified = false;
}
/**
* The last date this event was modified.
*/
@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;
}
/**
* The service(s) (if any) effected by this event.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String servicesAffected;
public String getServicesAffected() {
return servicesAffected;
}
public void setServicesAffected(String servicesAffected) {
servicesAffectedSpecified = true;
this.servicesAffected = servicesAffected;
}
protected boolean servicesAffectedSpecified;
public boolean isServicesAffectedSpecified() {
return servicesAffectedSpecified;
}
public void unsetServicesAffected() {
servicesAffected = null;
servicesAffectedSpecified = false;
}
/**
* The date this event will start.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar startDate;
public GregorianCalendar getStartDate() {
return startDate;
}
public void setStartDate(GregorianCalendar startDate) {
startDateSpecified = true;
this.startDate = startDate;
}
protected boolean startDateSpecified;
public boolean isStartDateSpecified() {
return startDateSpecified;
}
public void unsetStartDate() {
startDate = null;
startDateSpecified = false;
}
/**
* Current status record for this event.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long statusId;
public Long getStatusId() {
return statusId;
}
public void setStatusId(Long statusId) {
statusIdSpecified = true;
this.statusId = statusId;
}
protected boolean statusIdSpecified;
public boolean isStatusIdSpecified() {
return statusIdSpecified;
}
public void unsetStatusId() {
statusId = null;
statusIdSpecified = false;
}
public Service asService(ApiClient client) {
return service(client, id);
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
public static Service service(ApiClient client, Long id) {
return client.createService(Service.class, id == null ? null : id.toString());
}
/**
* The SoftLayer_Auxiliary_Notification_Emergency service is associated with all actions pertaining to the notification system. It can be used to check for current network or service interruptions that effect SoftLayer services.
*
* @see SoftLayer_Auxiliary_Notification_Emergency
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Auxiliary_Notification_Emergency")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Retrieve an array of SoftLayer_Auxiliary_Notification_Emergency data types, which contain all notification events regardless of status.
*
* @see SoftLayer_Auxiliary_Notification_Emergency::getAllObjects
*/
@ApiMethod
public List getAllObjects();
/**
* Retrieve an array of SoftLayer_Auxiliary_Notification_Emergency data types, which contain all current notification events.
*
* @see SoftLayer_Auxiliary_Notification_Emergency::getCurrentNotifications
*/
@ApiMethod
public List getCurrentNotifications();
/**
* getObject retrieves the SoftLayer_Auxiliary_Notification_Emergency object, it can be used to check for current notifications being broadcast by SoftLayer.
*
* @see SoftLayer_Auxiliary_Notification_Emergency::getObject
*/
@ApiMethod(instanceRequired = true)
public Emergency getObject();
/**
* The signature of the SoftLayer employee department associated with this notification.
*
* @see SoftLayer_Auxiliary_Notification_Emergency::getSignature
*/
@ApiMethod(instanceRequired = true)
public Signature getSignature();
/**
* The status of this notification.
*
* @see SoftLayer_Auxiliary_Notification_Emergency::getStatus
*/
@ApiMethod(instanceRequired = true)
public Status getStatus();
}
public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#getAllObjects}
*/
public Future> getAllObjects();
public Future> getAllObjects(ResponseHandler> callback);
/**
* Async version of {@link Service#getCurrentNotifications}
*/
public Future> getCurrentNotifications();
public Future> getCurrentNotifications(ResponseHandler> callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#getSignature}
*/
public Future getSignature();
/**
* Async callback version of {@link Service#getSignature}
*/
public Future> getSignature(ResponseHandler callback);
/**
* Async version of {@link Service#getStatus}
*/
public Future getStatus();
/**
* Async callback version of {@link Service#getStatus}
*/
public Future> getStatus(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.auxiliary.notification.emergency.Signature.Mask signature() {
return withSubMask("signature", com.softlayer.api.service.auxiliary.notification.emergency.Signature.Mask.class);
}
public com.softlayer.api.service.auxiliary.notification.emergency.Status.Mask status() {
return withSubMask("status", com.softlayer.api.service.auxiliary.notification.emergency.Status.Mask.class);
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask device() {
withLocalProperty("device");
return this;
}
public Mask duration() {
withLocalProperty("duration");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask location() {
withLocalProperty("location");
return this;
}
public Mask message() {
withLocalProperty("message");
return this;
}
public Mask modifyDate() {
withLocalProperty("modifyDate");
return this;
}
public Mask servicesAffected() {
withLocalProperty("servicesAffected");
return this;
}
public Mask startDate() {
withLocalProperty("startDate");
return this;
}
public Mask statusId() {
withLocalProperty("statusId");
return this;
}
}
}