com.softlayer.api.service.notification.occurrence.User 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;
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.notification.occurrence.Event;
import com.softlayer.api.service.notification.occurrence.Resource;
import com.softlayer.api.service.user.Customer;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Future;
/**
* This type contains general information relating to a user that may be impacted by a [[SoftLayer_Notification_Occurrence_Event]].
*
* @see SoftLayer_Notification_Occurrence_User
*/
@ApiType("SoftLayer_Notification_Occurrence_User")
public class User extends Entity {
/**
* A collection of resources impacted by the associated event.
*/
@ApiProperty
protected List impactedResources;
public List getImpactedResources() {
if (impactedResources == null) {
impactedResources = new ArrayList();
}
return impactedResources;
}
/**
* The associated event.
*/
@ApiProperty
protected Event notificationOccurrenceEvent;
public Event getNotificationOccurrenceEvent() {
return notificationOccurrenceEvent;
}
public void setNotificationOccurrenceEvent(Event notificationOccurrenceEvent) {
this.notificationOccurrenceEvent = notificationOccurrenceEvent;
}
/**
* The impacted user.
*/
@ApiProperty
protected Customer user;
public Customer getUser() {
return user;
}
public void setUser(Customer user) {
this.user = user;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long acknowledgedFlag;
public Long getAcknowledgedFlag() {
return acknowledgedFlag;
}
public void setAcknowledgedFlag(Long acknowledgedFlag) {
acknowledgedFlagSpecified = true;
this.acknowledgedFlag = acknowledgedFlag;
}
protected boolean acknowledgedFlagSpecified;
public boolean isAcknowledgedFlagSpecified() {
return acknowledgedFlagSpecified;
}
public void unsetAcknowledgedFlag() {
acknowledgedFlag = null;
acknowledgedFlagSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long active;
public Long getActive() {
return active;
}
public void setActive(Long active) {
activeSpecified = true;
this.active = active;
}
protected boolean activeSpecified;
public boolean isActiveSpecified() {
return activeSpecified;
}
public void unsetActive() {
active = null;
activeSpecified = false;
}
@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;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long usrRecordId;
public Long getUsrRecordId() {
return usrRecordId;
}
public void setUsrRecordId(Long usrRecordId) {
usrRecordIdSpecified = true;
this.usrRecordId = usrRecordId;
}
protected boolean usrRecordIdSpecified;
public boolean isUsrRecordIdSpecified() {
return usrRecordIdSpecified;
}
public void unsetUsrRecordId() {
usrRecordId = null;
usrRecordIdSpecified = false;
}
/**
* A count of a collection of resources impacted by the associated event.
*/
@ApiProperty
protected Long impactedResourceCount;
public Long getImpactedResourceCount() {
return impactedResourceCount;
}
public void setImpactedResourceCount(Long impactedResourceCount) {
this.impactedResourceCount = impactedResourceCount;
}
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());
}
/**
* @see SoftLayer_Notification_Occurrence_User
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Notification_Occurrence_User")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* @see SoftLayer_Notification_Occurrence_User::acknowledge
*/
@ApiMethod(instanceRequired = true)
public Boolean acknowledge();
/**
* @see SoftLayer_Notification_Occurrence_User::getAllObjects
*/
@ApiMethod
public List getAllObjects();
/**
* @see SoftLayer_Notification_Occurrence_User::getImpactedDeviceCount
*/
@ApiMethod(instanceRequired = true)
public Long getImpactedDeviceCount();
/**
* @see SoftLayer_Notification_Occurrence_User::getObject
*/
@ApiMethod(instanceRequired = true)
public User getObject();
/**
* A collection of resources impacted by the associated event.
*
* @see SoftLayer_Notification_Occurrence_User::getImpactedResources
*/
@ApiMethod(instanceRequired = true)
public List getImpactedResources();
/**
* The associated event.
*
* @see SoftLayer_Notification_Occurrence_User::getNotificationOccurrenceEvent
*/
@ApiMethod(instanceRequired = true)
public Event getNotificationOccurrenceEvent();
/**
* The impacted user.
*
* @see SoftLayer_Notification_Occurrence_User::getUser
*/
@ApiMethod(instanceRequired = true)
public Customer getUser();
}
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#acknowledge}
*/
public Future acknowledge();
public Future> acknowledge(ResponseHandler callback);
/**
* Async version of {@link Service#getAllObjects}
*/
public Future> getAllObjects();
public Future> getAllObjects(ResponseHandler> callback);
/**
* Async version of {@link Service#getImpactedDeviceCount}
*/
public Future getImpactedDeviceCount();
public Future> getImpactedDeviceCount(ResponseHandler callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#getImpactedResources}
*/
public Future> getImpactedResources();
/**
* Async callback version of {@link Service#getImpactedResources}
*/
public Future> getImpactedResources(ResponseHandler> callback);
/**
* Async version of {@link Service#getNotificationOccurrenceEvent}
*/
public Future getNotificationOccurrenceEvent();
/**
* Async callback version of {@link Service#getNotificationOccurrenceEvent}
*/
public Future> getNotificationOccurrenceEvent(ResponseHandler callback);
/**
* Async version of {@link Service#getUser}
*/
public Future getUser();
/**
* Async callback version of {@link Service#getUser}
*/
public Future> getUser(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Resource.Mask impactedResources() {
return withSubMask("impactedResources", Resource.Mask.class);
}
public Event.Mask notificationOccurrenceEvent() {
return withSubMask("notificationOccurrenceEvent", Event.Mask.class);
}
public com.softlayer.api.service.user.Customer.Mask user() {
return withSubMask("user", com.softlayer.api.service.user.Customer.Mask.class);
}
public Mask acknowledgedFlag() {
withLocalProperty("acknowledgedFlag");
return this;
}
public Mask active() {
withLocalProperty("active");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask usrRecordId() {
withLocalProperty("usrRecordId");
return this;
}
public Mask impactedResourceCount() {
withLocalProperty("impactedResourceCount");
return this;
}
}
}