com.softlayer.api.service.notification.user.subscriber.Mobile 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.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.notification.user.Subscriber;
import java.util.concurrent.Future;
/**
* A notification subscriber will have details pertaining to the subscriber's notification subscription. You can receive details such as preferences, details of the preferences, delivery methods and the delivery methods for the subscriber.
*
* NOTE: There are preferences and delivery methods that cannot be modified. Also, there are some subscriptions that are required.
*
* @see SoftLayer_Notification_User_Subscriber_Mobile
*/
@ApiType("SoftLayer_Notification_User_Subscriber_Mobile")
public class Mobile extends Subscriber {
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());
}
/**
* SoftLayer Customers can subscribe to receive notifications for various notification types. This service also allows you to "turn on" or "turn off" notification messages sent to a subscriber for certain notifications.
*
* @see SoftLayer_Notification_User_Subscriber_Mobile
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Notification_User_Subscriber_Mobile")
public static interface Service extends Subscriber.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* @see SoftLayer_Notification_User_Subscriber_Mobile::clearSnoozeTimer
*/
@ApiMethod(instanceRequired = true)
public Boolean clearSnoozeTimer();
/**
* @see SoftLayer_Notification_User_Subscriber_Mobile::getObject
*/
@ApiMethod(value = "getObject", instanceRequired = true)
public Mobile getObjectForMobile();
/**
* @see SoftLayer_Notification_User_Subscriber_Mobile::setSnoozeTimer
*/
@ApiMethod(instanceRequired = true)
public Boolean setSnoozeTimer(Long start, Long end);
}
public static interface ServiceAsync extends Subscriber.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#clearSnoozeTimer}
*/
public Future clearSnoozeTimer();
public Future> clearSnoozeTimer(ResponseHandler callback);
/**
* Async version of {@link Service#getObjectForMobile}
*/
public Future getObjectForMobile();
public Future> getObjectForMobile(ResponseHandler callback);
/**
* Async version of {@link Service#setSnoozeTimer}
*/
public Future setSnoozeTimer(Long start, Long end);
public Future> setSnoozeTimer(Long start, Long end, ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.notification.user.Subscriber.Mask {
}
}