com.softlayer.api.service.notification.user.subscriber.Resource 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.user.subscriber;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.notification.user.Subscriber;
/**
* Retrieve identifier cross-reference information. SoftLayer_Notification_User_Subscriber_Resource provides the resource table id and subscriber id relation. The resource table id is the id of the service the subscriber receives alerts for. This resource table id could be the unique identifier for a Storage Evault service, Global Load Balancer or CDN service.
*
* @see SoftLayer_Notification_User_Subscriber_Resource
*/
@ApiType("SoftLayer_Notification_User_Subscriber_Resource")
public class Resource extends Entity {
/**
* The Subscriber information tied to the resource service.
*/
@ApiProperty
protected Subscriber notificationUserSubscriber;
public Subscriber getNotificationUserSubscriber() {
return notificationUserSubscriber;
}
public void setNotificationUserSubscriber(Subscriber notificationUserSubscriber) {
this.notificationUserSubscriber = notificationUserSubscriber;
}
/**
* Unique identifier of the subscriber that will receive the alerts for the resource subscribed to a notification.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long notificationUserSubscriberId;
public Long getNotificationUserSubscriberId() {
return notificationUserSubscriberId;
}
public void setNotificationUserSubscriberId(Long notificationUserSubscriberId) {
notificationUserSubscriberIdSpecified = true;
this.notificationUserSubscriberId = notificationUserSubscriberId;
}
protected boolean notificationUserSubscriberIdSpecified;
public boolean isNotificationUserSubscriberIdSpecified() {
return notificationUserSubscriberIdSpecified;
}
public void unsetNotificationUserSubscriberId() {
notificationUserSubscriberId = null;
notificationUserSubscriberIdSpecified = false;
}
/**
* Unique identifier for a SoftLayer service that is subscribed to a notification. Currently, the SoftLayer services that can be subscribed to notifications are:
*
* Storage EVault CDN Global Load Balancer
*
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long resourceTableId;
public Long getResourceTableId() {
return resourceTableId;
}
public void setResourceTableId(Long resourceTableId) {
resourceTableIdSpecified = true;
this.resourceTableId = resourceTableId;
}
protected boolean resourceTableIdSpecified;
public boolean isResourceTableIdSpecified() {
return resourceTableIdSpecified;
}
public void unsetResourceTableId() {
resourceTableId = null;
resourceTableIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.notification.user.Subscriber.Mask notificationUserSubscriber() {
return withSubMask("notificationUserSubscriber", com.softlayer.api.service.notification.user.Subscriber.Mask.class);
}
public Mask notificationUserSubscriberId() {
withLocalProperty("notificationUserSubscriberId");
return this;
}
public Mask resourceTableId() {
withLocalProperty("resourceTableId");
return this;
}
}
}