code: public DdosProtectionPlanInner beginCreateOrUpdate(String resourceGroupName, String ddosProtectionPlanName, DdosProtectionPlanInner parameters) {
          return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, ddosProtectionPlanName, parameters).toBlocking().single().body();
      }
docs: Creates or updates a DDoS protection plan.
  
  @param resourceGroupName The name of the resource group.
  @param ddosProtectionPlanName The name of the DDoS protection plan.
  @param parameters Parameters supplied to the create or update 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 DdosProtectionPlanInner object if successful.