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