code: public TriggerInner createOrUpdate(String deviceName, String name, String resourceGroupName, TriggerInner trigger) {
          return createOrUpdateWithServiceResponseAsync(deviceName, name, resourceGroupName, trigger).toBlocking().last().body();
      }
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.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the TriggerInner object if successful.