com.softlayer.api.service.notification.user.subscriber.Billing 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
The newest version!
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_Billing
*/
@ApiType("SoftLayer_Notification_User_Subscriber_Billing")
public class Billing 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_Billing
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Notification_User_Subscriber_Billing")
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_Billing::getObject
*/
@ApiMethod(value = "getObject", instanceRequired = true)
public Billing getObjectForBilling();
}
public static interface ServiceAsync extends Subscriber.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#getObjectForBilling}
*/
public Future getObjectForBilling();
public Future> getObjectForBilling(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.notification.user.Subscriber.Mask {
}
}