All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softlayer.api.service.notification.subscriber.delivery.Method Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.notification.subscriber.delivery;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.notification.Subscriber;
import java.util.GregorianCalendar;

/**
 * Provides details for the subscriber's delivery methods. 
 *
 * @see SoftLayer_Notification_Subscriber_Delivery_Method
 */
@ApiType("SoftLayer_Notification_Subscriber_Delivery_Method")
public class Method extends Entity {

    @ApiProperty
    protected com.softlayer.api.service.notification.delivery.Method notificationDeliveryMethod;

    public com.softlayer.api.service.notification.delivery.Method getNotificationDeliveryMethod() {
        return notificationDeliveryMethod;
    }

    public void setNotificationDeliveryMethod(com.softlayer.api.service.notification.delivery.Method notificationDeliveryMethod) {
        this.notificationDeliveryMethod = notificationDeliveryMethod;
    }

    @ApiProperty
    protected Subscriber notificationSubscriber;

    public Subscriber getNotificationSubscriber() {
        return notificationSubscriber;
    }

    public void setNotificationSubscriber(Subscriber notificationSubscriber) {
        this.notificationSubscriber = notificationSubscriber;
    }

    /**
     * Indicates the subscriber's delivery method availability for notifications. 
     */
    @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;
    }

    /**
     * Date the subscriber's delivery method 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;
    }

    /**
     * Date the subscriber's delivery method was last 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;
    }

    /**
     * Identifier for the notification delivery method. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long notificationDeliveryMethodId;

    public Long getNotificationDeliveryMethodId() {
        return notificationDeliveryMethodId;
    }

    public void setNotificationDeliveryMethodId(Long notificationDeliveryMethodId) {
        notificationDeliveryMethodIdSpecified = true;
        this.notificationDeliveryMethodId = notificationDeliveryMethodId;
    }

    protected boolean notificationDeliveryMethodIdSpecified;

    public boolean isNotificationDeliveryMethodIdSpecified() {
        return notificationDeliveryMethodIdSpecified;
    }

    public void unsetNotificationDeliveryMethodId() {
        notificationDeliveryMethodId = null;
        notificationDeliveryMethodIdSpecified = false;
    }

    /**
     * Identifier for the subscriber. 
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long notificationSubscriberId;

    public Long getNotificationSubscriberId() {
        return notificationSubscriberId;
    }

    public void setNotificationSubscriberId(Long notificationSubscriberId) {
        notificationSubscriberIdSpecified = true;
        this.notificationSubscriberId = notificationSubscriberId;
    }

    protected boolean notificationSubscriberIdSpecified;

    public boolean isNotificationSubscriberIdSpecified() {
        return notificationSubscriberIdSpecified;
    }

    public void unsetNotificationSubscriberId() {
        notificationSubscriberId = null;
        notificationSubscriberIdSpecified = false;
    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

        public com.softlayer.api.service.notification.delivery.Method.Mask notificationDeliveryMethod() {
            return withSubMask("notificationDeliveryMethod", com.softlayer.api.service.notification.delivery.Method.Mask.class);
        }

        public com.softlayer.api.service.notification.Subscriber.Mask notificationSubscriber() {
            return withSubMask("notificationSubscriber", com.softlayer.api.service.notification.Subscriber.Mask.class);
        }

        public Mask active() {
            withLocalProperty("active");
            return this;
        }

        public Mask createDate() {
            withLocalProperty("createDate");
            return this;
        }

        public Mask modifyDate() {
            withLocalProperty("modifyDate");
            return this;
        }

        public Mask notificationDeliveryMethodId() {
            withLocalProperty("notificationDeliveryMethodId");
            return this;
        }

        public Mask notificationSubscriberId() {
            withLocalProperty("notificationSubscriberId");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy