code: public ServiceFuture<TriggerInner> beginCreateOrUpdateAsync(String deviceName, String name, String resourceGroupName, TriggerInner trigger, final ServiceCallback<TriggerInner> serviceCallback) {
          return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(deviceName, name, resourceGroupName, trigger), serviceCallback);
      }
docs: Creates or updates a trigger.
  
  @param deviceName Creates or updates a trigger
  @param name The trigger name.
  @param resourceGroupName The resource group name.
  @param trigger The trigger.
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object