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

com.softlayer.api.service.ticket.attachment.file.ServiceNow Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.ticket.attachment.file;

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.ticket.attachment.File;
import java.util.concurrent.Future;

/**
 * @see SoftLayer_Ticket_Attachment_File_ServiceNow
 */
@ApiType("SoftLayer_Ticket_Attachment_File_ServiceNow")
public class ServiceNow extends File {

    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());
    }

    /**
     * @see SoftLayer_Ticket_Attachment_File_ServiceNow
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Ticket_Attachment_File_ServiceNow")
    public static interface Service extends File.Service {

        public ServiceAsync asAsync();
        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * @see SoftLayer_Ticket_Attachment_File_ServiceNow::getObject
         */
        @ApiMethod(value = "getObject", instanceRequired = true)
        public ServiceNow getObjectForServiceNow();

    }

    public static interface ServiceAsync extends File.ServiceAsync {

        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * Async version of {@link Service#getObjectForServiceNow}
         */
        public Future getObjectForServiceNow();

        public Future getObjectForServiceNow(ResponseHandler callback);

    }

    public static class Mask extends com.softlayer.api.service.ticket.attachment.File.Mask {

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy