public class UnshareDeviceRequestExecutor extends RequestExecutor<java.lang.String>
DevicesApi. Use this class if you want to unshare
 devices through fluent API in chained fashion. Example of use:
 
   
   KontaktCloud kontaktCloud = KontaktCloudFactory.create();
   kontaktCloud.devices().unshare(IDs)
      .fromManagers(managerEmails)
      .execute();
   
 
 Keep in mind that managers must be specified so invocation of fromManagers method is
 mandatory. Otherwise an exception will be thrown at runtime.| Constructor and Description | 
|---|
| UnshareDeviceRequestExecutor(DevicesService devicesService,
                            java.util.List<java.lang.String> uniqueIds)Constructs request executor initialized with corresponding service class and device unique IDs. | 
| UnshareDeviceRequestExecutor(DevicesService devicesService,
                            java.lang.String... uniqueIds)Constructs request executor initialized with corresponding service class and device unique IDs. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | execute()Executes created request synchronously. | 
| void | execute(CloudCallback<java.lang.String> callback)Executes created request asynchronously and invokes callback with the result. | 
| UnshareDeviceRequestExecutor | fromManagers(java.util.List<java.lang.String> managerEmails)Specifies managers. | 
| UnshareDeviceRequestExecutor | fromManagers(java.lang.String... managerEmails)Specifies managers. | 
public UnshareDeviceRequestExecutor(DevicesService devicesService, java.lang.String... uniqueIds)
devicesService - the devices API service.uniqueIds - device unique identifiers.public UnshareDeviceRequestExecutor(DevicesService devicesService, java.util.List<java.lang.String> uniqueIds)
devicesService - the devices API service.uniqueIds - device unique identifiers.public UnshareDeviceRequestExecutor fromManagers(java.lang.String... managerEmails)
managerEmails - manager email addresses.public UnshareDeviceRequestExecutor fromManagers(java.util.List<java.lang.String> managerEmails)
managerEmails - manager email addresses.public java.lang.String execute()
                         throws java.io.IOException,
                                KontaktCloudException
execute in class RequestExecutor<java.lang.String>java.io.IOException - exceptionKontaktCloudException - exceptionpublic void execute(CloudCallback<java.lang.String> callback)
execute in class RequestExecutor<java.lang.String>callback - the callback object.