code: public VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, virtualNetworkPeeringParameters).toBlocking().last().body();
      }
docs: Creates or updates a peering in the specified virtual network.
  
  @param resourceGroupName The name of the resource group.
  @param virtualNetworkName The name of the virtual network.
  @param virtualNetworkPeeringName The name of the peering.
  @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual network peering operation.
  @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 VirtualNetworkPeeringInner object if successful.