com.softlayer.api.service.notification.Subscriber 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;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Notification;
import com.softlayer.api.service.notification.subscriber.delivery.Method;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
/**
* @see SoftLayer_Notification_Subscriber
*/
@ApiType("SoftLayer_Notification_Subscriber")
public class Subscriber extends Entity {
@ApiProperty
protected List deliveryMethods;
public List getDeliveryMethods() {
if (deliveryMethods == null) {
deliveryMethods = new ArrayList();
}
return deliveryMethods;
}
@ApiProperty
protected Notification notification;
public Notification getNotification() {
return notification;
}
public void setNotification(Notification notification) {
this.notification = notification;
}
@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 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;
}
@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 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;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long notificationId;
public Long getNotificationId() {
return notificationId;
}
public void setNotificationId(Long notificationId) {
notificationIdSpecified = true;
this.notificationId = notificationId;
}
protected boolean notificationIdSpecified;
public boolean isNotificationIdSpecified() {
return notificationIdSpecified;
}
public void unsetNotificationId() {
notificationId = null;
notificationIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long notificationSubscriberTypeId;
public Long getNotificationSubscriberTypeId() {
return notificationSubscriberTypeId;
}
public void setNotificationSubscriberTypeId(Long notificationSubscriberTypeId) {
notificationSubscriberTypeIdSpecified = true;
this.notificationSubscriberTypeId = notificationSubscriberTypeId;
}
protected boolean notificationSubscriberTypeIdSpecified;
public boolean isNotificationSubscriberTypeIdSpecified() {
return notificationSubscriberTypeIdSpecified;
}
public void unsetNotificationSubscriberTypeId() {
notificationSubscriberTypeId = null;
notificationSubscriberTypeIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long notificationSubscriberTypeResourceId;
public Long getNotificationSubscriberTypeResourceId() {
return notificationSubscriberTypeResourceId;
}
public void setNotificationSubscriberTypeResourceId(Long notificationSubscriberTypeResourceId) {
notificationSubscriberTypeResourceIdSpecified = true;
this.notificationSubscriberTypeResourceId = notificationSubscriberTypeResourceId;
}
protected boolean notificationSubscriberTypeResourceIdSpecified;
public boolean isNotificationSubscriberTypeResourceIdSpecified() {
return notificationSubscriberTypeResourceIdSpecified;
}
public void unsetNotificationSubscriberTypeResourceId() {
notificationSubscriberTypeResourceId = null;
notificationSubscriberTypeResourceIdSpecified = false;
}
/**
* A count of
*/
@ApiProperty
protected Long deliveryMethodCount;
public Long getDeliveryMethodCount() {
return deliveryMethodCount;
}
public void setDeliveryMethodCount(Long deliveryMethodCount) {
this.deliveryMethodCount = deliveryMethodCount;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.notification.subscriber.delivery.Method.Mask deliveryMethods() {
return withSubMask("deliveryMethods", com.softlayer.api.service.notification.subscriber.delivery.Method.Mask.class);
}
public com.softlayer.api.service.Notification.Mask notification() {
return withSubMask("notification", com.softlayer.api.service.Notification.Mask.class);
}
public Mask active() {
withLocalProperty("active");
return this;
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask modifyDate() {
withLocalProperty("modifyDate");
return this;
}
public Mask notificationId() {
withLocalProperty("notificationId");
return this;
}
public Mask notificationSubscriberTypeId() {
withLocalProperty("notificationSubscriberTypeId");
return this;
}
public Mask notificationSubscriberTypeResourceId() {
withLocalProperty("notificationSubscriberTypeResourceId");
return this;
}
public Mask deliveryMethodCount() {
withLocalProperty("deliveryMethodCount");
return this;
}
}
}